Why is it ok for women to generalise men but it isn’t ok to generalise black people?

If feminists are really for equality then they wouldn’t be generalising anyone. Imagine if this tweet said “every person knows it’s not all black people. but we don’t know which black people so we stay wary of all black people. it’s not rocket science” That would be racist right? So why is one not sexist but the other one is racist?
Why is it ok for women to generalise men but it isn’t ok to generalise black people?
Why is it ok for women to generalise men but it isn’t ok to generalise black people?
Post Opinion