A farmer with 20-30 cows tends to have a quite close connection with their animals. They often have a small plot of land they can use as pasture and the barn is not super-optimized to squeeze out the last square centimeter for effiency since there are no scale effects where it would have any noticeable effect. Each animal is a being they have often times have a connection with, and empathy for. Most small farmers I know can describe to me quite vividly the personality of each individual of their animals. They care.
Big dairy industry looks different. A big farm with 1000 milking cows is hyper-optimized for maximum profit. There is not enough pasture to go round, so depending on regulations of the country, the animals may never go outside ever. If you can save 1% on buying in cheaper food, even if it comes from half a continent away, you do it since that's easily a six-figure savings. If you can increase stocking density withing law limits, you do it. If you need to use less sand or can get away with cleaning their water bins less often, you do it. Each animal is a number that turns food expenses into milk profits, that's it.