Cows rub their heads on the ground for several reasons:
Itching relief: Cows cannot reach every itch with their tongues, so they rub against sturdy surfaces to scratch, especially if they have allergies or insect bites.
Scent marking: Cows have scent glands on their foreheads and around their eyes. Rubbing their heads on objects leaves their scent and helps them mark territory.
Grooming and shedding: Rubbing against rough surfaces removes dirt, loose hair, and parasites, which is especially helpful during shedding season.
Cooling down: Rubbing their heads against a cool surface helps dissipate heat in hot weather.
Boredom and curiosity: Cows are curious animals and may rub objects as a way to explore their environment.