While the jury's out on where dairy (and meat for that matter) comes from in Zootopia, it is answered in Beastars. Some sell their milk and eggs willingly, while on the darker side, the Black Market sells meat of animals who were murdered and/or children who were raised specifically to be killed for meat.