There are many reasons why girls play hard to get.
It is a way that they use to tell the guys out there they are not easy target that any guy can just hook onto them. And guys being guys also like the challenge of getting the girl that plays hard to get with them.