Why do some men take the mick out of women using sarcasm? See below for example?

For example if a woman is changing career and getting another degree…why would a guy make a sarcastic comment about him not being able to stick to one thing when he’s clearly directing it at her.

Why do some men take the mick out of women using sarcasm? See below for example?
Post Opinion