it's not. the landlord is just to post the listing to find a tenant who will share the space with another person.
also, this listing only describes the gender of the person who already living there. it doesn't demand or state any preference on the sex of the new tenant.