Because the brick wall isn't being mass reproduced and distributed by the homeowner for profit. If there was a market for it you can bet the bricklayer would have some say. On the other hand, the vaccine maker is getting paid royalties.
Intellectual property laws encourage innovation. Innovation might just save your life one day if it hasn't already. Without some protection, only the suckers will invest money into research and development. See how long that lasts.