A man who lives on the tenth floor takes the elevator down to the first floor every morning and goes to work. In the evening, when he comes back; on a rainy day, or if there are other people in the elevator, he goes to his floor directly. Otherwise, he goes to the seventh floor and walks up three flights of stairs to his apartment.

Can you explain why?

(This is one of the more popular and most celebrated of all lateral thinking logic puzzles. It is a true classic. Although there are many possible solutions that fit the conditions, only the canonical answer is truly satisfying.)