Buddha was explaining here “halo effect”, many men get enamored with women and positive look-qualities not realizing mental qualities of that women or either ignoring bad, or even acting to appeal for that negative gathi because of liking to enjoy women’s company and look (sexual favors, women know they can act like this without this lifetime consequences because they are aware of using that poison for their own benefit, while not always as kammic consequences of such mindset can be triggered in this lifetime too). Especially those days we need suttas like that when women are perceived as “holy or innocent” in many movies and sociocultural aspects. (Do not bring “you hate women” argument as this got nothing to do with it but seeing things as they are, if somebody thought about that even for a second you are manipulated already and think that anybody can have status quo without responsibility for one’s actions). Even monks are speaking that “this sutta does not belong to Buddha” because not understanding it and to appeal to that sociocultural status quo which actually strengths negative traits and mindset in women.
If you look closely even your surprised tone in question springs from that manipulation and prejudice bias “is this sutta about women true? Is this really spoken words of the buddha?” – ignorance is the most scary thing in the world, that you are unable to realize things like this and it’s working behind your mind/brain like you are NPC that unable to see through things like that.