A man lives on the 10th floor of an apartment block.
Each day he goes out, he takes the elevator all the way down.
When he returns, he takes the elevator up to the 7th floor and walks the remaining floors. On days that it rains however, the man returns by taking the elevator directly to the 10th floor.
Question: The man prefers to avoid walking, if he can. Why does he do the above?