It is impossible for Latias to be a male. Only Latios can be male.
Known as the Eon Pokémon, Latias and Latios are two legendary Pokémon
originating from the Ruby, Sapphire, and Emerald series of games. They
are female and male respectively, and the first legendary Pokémon to
have genders. While Latias is red and white, Latios is blue and white, as well as being larger and more angular.
Latias is the sister, and Latios is the brother.
In this picture, Latias is the red, and Latios is the blue.
Are you sure you didn't get mixed up or something? And if you aren't mixed up, then that is a glitch.