He was just being a dick. It's not even consistent with his character. He feels embarrassed, sure. But Takagi is his friend, even if he can't own being in love with her. Ditching her at the toilet is simply a dick move.
Actually, looking like a writer 's fail. Is there going to be a Shark Jump soon?