It's certainly not the case that women think all men are shallow, but any woman who has been on any dating app will tell you that she has met a lot of creeps. Men who open the conversation with "DTF?" are a daily occurrence.
There's a certain survivorship bias there: such men don't get removed from the market. Men genuinely seeking long term commitments, or even medium term ones, will often find them and leave.