It is pretty silly. They could solve the problem by imposing strict liability on dairy sales. If the farmer sells you a pail of raw milk and you get sick from drinking it, that farmer is liable for it, no waivers.
This is often how other dangerous products such as fireworks are regulated. The liability is a cost of doing business.