Apparently you're stupid then.
A country where it is illegal to be transgender, where you are not allowed to change your gender, and where doing any of these things will land you in jail or prison, is not going to send a person who violates their laws to multiple Olympics and world championship events. If she was truly a biological male, none of this would have happened and "he" would be unhappily making big rocks into smaller ones, if not have already been executed in some grim way.
Once this became an issue, if Algeria's government even had the slightest idea Khelif wasn't a woman, some very bad things would have happened to her, her family and anyone else around for embarrassing Algeria internationally.