Girls, Locker rooms and opposite gender children. Is it ok? And up to what age?

Anonymous
I was at a local pool a few days ago and was in the showers of the men's locker room. When a dad comes in with his son and daughter. The kids were about 4-5 years old give or take. He goes to the shower across from me. This is just one big room, no stalls or curtains. And takes his suit off and the kids suits. I'm in shock by all of this. But just continue to shower. So I'm naked, the dad's naked, and so are the boy and girl. I notice the little girl is just satring at my penis and nudity in general. The dad is oblivious to all of this and washes his kids. I finish and go to dress at my locker. And when I get there, another dad is dressing two other young girls who both get a good look at me.
My questions, was it ok for these young girls to be in the men's locker room where nude men are? And was it ok for me to be naked in front of the girl in the showers and the girls at my locker? I feel so embarrassed and a little guilty for it. Did I do something wrong by continuing to shower? I was all soapy and had to rinse off. And I didn't know the two girls would be near my locker. I dressed quickly and left hoping the dad's werent upset.
Should the dad have asked before showering with me if I was ok with it? And should the other dad have announced the young girls entering? So guys could cover up.
If your husband did this, would you be mad at him? For allowing you're daughter to see naked men. Should I complain to the pool?

Just not sure what to do for next time.
Updates
+1 y
To Morpheus_12 , yesterday I had another encounter with a girl in the men's locker room while naked. I went to go pee and went to the one urinal. There are 2 urinals, no dividers. These are very low and little urinals so that kids can use them. So everyone can see your penis. 2 stalls, one stall door was to my left about 5 feet away. I'm peeing, trunks to my knees. The door next to me opens and out steps a girl who looks 12. She sees me standing there penis in hand urinating and stops.
Updates
+1 y
Then her dad I'm assuming steps out behind her and sees me standing there practically naked peeing and ushers her over to the sink. She washes her hands and stares at me as she walks by, looking at my naked butt. The as she turns the corner looks back and sees my penis one last time. I was in shock. Nothing I could do to cover my penis as I was urinating and couldn't stop. I felt so violated and ashamed knowing a girl that age saw my penis while I was peeing. And she def got a good look sadly.
Girls, Locker rooms and opposite gender children. Is it ok? And up to what age?
5 Opinion