because it feels good to release all that built up "milk tension". when one cow says to another "i feel horny" what they really mean is their utters are full and they need to be milked.
if a cow isn't milked within a certain time then they have to "milk themselves". this is something they do in private so we don't really know how they do it.