Because they can. It's a form of vocalization that tells other animals (other cattle, humans, etc.) whether they are looking for a lost friend or calf, hungry, ready for battle, in pain, dying, in heat and looking for a mate, etc.
But really, in real life, cows don't make a "moo" noise. It's more of a "mmmrraaww" noise. The description of the noise a cow makes in the English language is the best representation in as few letters as possible that we can make.
Uh, no...cows do, gorillas beat their chest and roar.
"Moo cows" are, essentially, cows that moo.
yes all cows moo.
Yes.
No.
They have a stuttering problem
moo moo cows that are weird
Yes but only if its loud moo
Yes.
No, not usually.
Frogs don't moo because they aren't cows!
With dairy cows, yes. Other times cows (including beef cows) will moo when they are calling to their calves, or when it's feeding time, or even when they're in heat.