It’s a courthouse, not a two-bit shack in nowhereville.
They generally have rules/policies that they need to have female officers around so that if they have to do a pat down one is around.
It’s not like law enforcement people don’t know how to staff buildings, they do it at airports, they do it in other federal buildings and other courthouses for this very reason. It’s not a hard burden to do this. YOU seem to have a problem with it however.
And BTW, for the goof who said this is like him having to take off a belt, that is clear bullsh1t. You can take off your belt without having to take off your pants.
Actually in my case, without my belt my pants fall off (recently lost 60 pounds).