Why did he lead me on but he likes another girl?

it broke my heart especially when guys ( like my close friend ) lead me on by being flirty but they end up liking other girls
Why did he lead me on but he likes another girl?
Post Opinion