Why does the guy I like get offline when he sees I'm online?

He'll chat with me a little and then get off quickly. I get on to check my feed and I see that he's online and then he notices I'm online and gets off. But he can still see my activity.
Why does the guy I like get offline when he sees I'm online?
Post Opinion