I can see no other reasons for women to wear those kind of shoes that are uncomfortable other than attracting men to their sexy bodies.
Because you're only seeing it from your own perspective. You had a conclusion before you asked the question. It doesn't seem to matter what people tell you, or why they explain what they do; you just filter it into your own worldview. Here it goes again, anyway.
I wear heels once in a while. Specifically in the summer, because we have a casual dress code at work, and I wear some wedges or something. Not too often.
It's not specifically for the guys at work. I have a bf already and am not looking for another. If my office was all women, I'd still wear them, and I'd still try to dress nicely overall sometimes (other days I just do the t-shirt jeans look, which I also think is nice- I like to mix it up, and some days I have to do something messy like cut aluminum). In fact there are other areas in our organization where it is mostly women, like HR, and most of them dress nicely all the time. Definitely dressier than I do, and I work with more men than women. I've even seen it argued that women mostly wear fashion primarily for other women, although I think that's a gross oversimplification too. I get more compliments from women at the office than from men anyway regarding my clothes and shoes, because in general women seem to be more talkative and sharing about fashion, like asking me where I got something, telling me something looks cute, etc. So for my friends at work, fashion can be a conversation piece.
And, most basically, I just like wearing things that I think look good. Especially in public or around people, but not specifically just men, and not with explicitly sexual ideas in mind. Just in general, because I like it.
In some sense, people can argue in evolutionary terms that most things are eventually subconsciously about sex/food/shelter indirectly. The man's suit, the woman's dress, the man's fancy watch, the woman's shoes, the man's nice car, etc. But they also just like them. Evolution works by means of creating pleasurable experiences, so people often like to drive a nice car, or wear a nice suit, or have a nice haircut, simply because they enjoy it.
For me, I don't care about my car, but I like to wear clothes and shoes I think are nice. It's not complicated. Men are not specifically in my mind when I dress in the morning.
And btw the heels I wear are comfortable to me. Heels have a reputation of being uncomfortable, but it's not universal, and especially if they are not worn everyday. I read reviews of which ones people find comfortable, try them, and generally find them to be comfortable. I do not wear any shoes that I personally find to be uncomfortable.
I have these for example, and they're comfy for casual wear for me: