Because they're just not attracted to them in that way, they only see them as friends. Also a lot of girls will actually lead guys on even when they don't want a relationship just because they know they'll get something like a friendship out of it. A female friend of mine told me she has done this too. It's lowkey evil but that's just how some girls be ig.