Ex crush

I saw him and his girlfriend walking to the bus today. I felt weird looking at them. I don't like him anymore. But why did it feel like I was upset looking at them?