Friend zone
The friend zone describes a situation where one person feels romantic interest but the other sees them strictly as a friend. The term is often used with a note of disappointment, even though it's really just a mismatch in what each person wants.
The friend zone isn't something the other person "does to you" out of spite — it's information about a mismatch in expectations.