The reason why women expect attention is actually because they want men to invest in her.
Source
First of all, I have to say this. In a relationship, not only the woman but also the man demands attention, but of course the woman needs more attention. The woman wants the man she will love or marry to invest in her - to be a provider. Because in a relationship, a woman is always the one who compromises more than herself, biologically. The person who will give birth to, raise and care for the child is a woman. That's why it's very important to find a man who will be his provider.
The man who shows interest in her is the man who has the most potential to take care of her child. so it uses this situation as a litmus. There may be some who will object to this evolutionary origin, but it is necessary to understand this. The woman wants to know that she is loved and to trust the man. In fact, all of this is to identify the man who will be his provider. so it indirectly appeals to the woman's motives, her expectation of attention from the man.