It was just unprofessional I would say.
For instance I can appreciate a dark joke that would clearly be sexist/racist/antisemitic/homophobic, I can even reproduce it in a like-minded circle of people, and I still don't consider myself sexist/racist/homophobic.