it doesn't work on men, but it works on women.
Jealous promotes needy and clingy behavior. It makes women fight for their man and show more interest, call more often and thus it works.
The problem with making a man jealous is the fact that it makes him LESS attractive. He becomes needy and clingy, he calls more and suddenly you like him less.
The other thing it does, is like you said, it makes you assume he doesn't like you, which is actually to his benefit.
If he shows too much interest, then he's creepy.
If he shows none, than he's safe.
If he shows Disinterest, then you like him.
Creepy is showing interest too soon for no good reason, combined with wanting it more than the other person.
And if you want it more than he does (which now you are thinking about him now because of what he did, which means you are more invested in him than you were before, and more than some joe blow that you blew off 2 seconds ago) Then it works.
When its not working, its working.
And that's why men do it.
Men would not do it, if women didn't train men to behave this way.
Its obviously asshole behavior, but as we all know, women like assholes. SO congrats, you get what you ask for.