Why do guys wait to open door for a girl?

I was an entire staircase away from the door, but when my co worker noticed me he waited for me at door to open it. Why do guys feel that they have to wait to open door for you.
Why do guys wait to open door for a girl?
Post Opinion