How does an offer like "women get free admission" avoid discrimination laws in the US?

Just funny to think about how there are laws in place to stop discrimination by race, gender, religion, disability, etc. and then the local venue has "women and kids get free admission" while men pay full price.