Pretty much the same reason they do during the day! They moo to communicate with each other. Sometimes it is a location call - just trying to find out who is around, sometimes it is about food, etc.
What is one thing cows and people have in common? We all like to talk, you might not notice during the day that they are talking ecause of daytime noise. Cows are always talking to eachother.