This is cultural.
Proper wild wees - not ideal but fine.
However, pavements, alleys and side roads are not wild areas.
It stars in childhood. Sometime ago there was a whole thread about poor boys who need to wee against trees on school run. School run. They cannot walk 15 minutes between one building fitted with toilets to another.
Girls who have may already experience UTIs are told to wait.
My neighbours's son likes to pee on their drive way. Just because.
Simone de Beauvoir wrote about it extensively in The Second Sex.
Men have bigger bladders, storage lees water in body cells, and are not affected by ovarian cysts and pregnancies. Yet, it is always men who have to piss all over.
Doesn't matter city center or motorway.
I have seen:
a man peeing on a bin - right by the pub doors, man peeing on the middle on the pavement - opposite the pub he just left, taxi driver filling in bottle by the pavement where women were passing by - by the train station with open public loos, teenagers peeing by the wall of someone's house - in the park, with open, free of charge public loos.
In Germany, I saw bunch of men peeing against the wall of public toilets because they did not want to pay 50 eurocents.
Men know it is not ok, they just do not care. I know fathers who see the problem, my own would challenge every man being so disgusting.
He is a very active 80 years old. Had his share of wild wees, I had too. Camping, treking etc. etc.
What was one of the first things I learnt about camping was to dig a hole and once you are done burry the evidence. However, facilities are much better nowadays anyway.