This exemplifies benevolent sexism
benevolent sexism refers to the type of sexist behavior that being carried out by believing negative stereotypes upon a certain gender.
Examples: Only believing that females who do not take care of their appearance are lazy, Believing that physically weak men can't be a leader, etc.