I just don't get it

Why do guys say all this stuff, lead you on then change their mind about you and instantly stop talking to you like they never cared??