Why do British police officers wear different hats based on their gender?

I was watching the news recently and noticed that all the male officers were wearing either the typical bobby hats or peaked caps, while all the female ones were wearing bowler hats.