No, there is no law in favor of pants. You could have worn a dress, for example. Or a sexy schoolgirl dress. Or a sexy librarian dress. Or a sexy kilt dress. But you will not waive your ladder duties if you do not wear pants! If you come in a dress, people may look up your skirt!