Why do girls looks to the side when they see a specific walking by?

There is a girl that sometime I walk by her and she sees me before we get close, she turns her head to the right, and looks back straight once we pass by each other. I’ve caught her staring from a far before but when we’re walking by each other she completely looks the opposite direction.
Why do girls looks to the side when they see a specific walking by?
Post Opinion