That just isn't true at scale. It's a lovely myth that the massive global meat conglomerates want us all to believe.
In fact, almost ALL dairy is industrially produced - it's nothing like the Farmer Ted image that you've had from childhood. In fact with dairy farming it's no longer accurate to talk about 'the farmer' at all - they are 'manufacturers'.
Zero-grazing 'systems' are now much more prevalent, so these creatures, who are emotionally complex like us, and form close bonds with one another, are unable to move, and cannot bond with one another. Can you imagine having to stand in a tiny cell for 22 hours a day for your whole life, and the other two hours being beaten towards the machines in chaos and fear, and then milked? Would you do this to your dog, whom cows resemble in terms of their emotional complexity, capacity for love, and intelligence?
And even if they could walk, they are likely to be physically incapable - vast numbers of them are 'lame', which sounds all romantic-olden-days but actually means crippled and in constant pain from dangerous floors and foot rot. Most of them have constantly recurring mastitis for their whole lives - anyone who has had that will know the pain and how ill it makes you. They are abused by farm workers who have come to see them not as creatures who feel pain but just.. meat I guess. Lots of undercover filming at British dairy farms online if you can bear to look.
And that's before you get to the psychological trauma of having their calves ripped away from them within hours of birth. This happens every year. They are very intelligent and maternal - they know exactly what has happened to them. Those calves never have a mother. The male ones are killed at birth - and in fact, that might be preferable to being a female calf, when you will face the pain and torture of your mother's life as a reproductive unit, without ever having experienced that mother's love.
It's horrific. We should all be ashamed of the world we have created. Please don't allow yourself to pretend this isn't happening, every hour of every day, within an hours' drive of most of us.