Yup exactly. And when animals are bred specifically for milk, they aren't treated well even before they are killed. Dairy cows need to be kept continuously pregnant / in lactation state through artificial insemination. They don't magically produce milk all-year round.
And pregnancy is _hard_ on animals (including humans), it changes your physiology and psychology. Even if we take for granted that a cow isn't as conscious as a human (IMO consciousness is a sliding scale, not a binary), then they are still being primed for giving birth and taking care of offspring which never comes. Imagine doing that to a human - it's a definite form of cruelty.