I think everyone has been overly harsh. While walking is not illegal almost anywhere it is nigh on impossible in many countries, for example the UAE. Walking may also be very, very dangerous to be out on the streets due to corruption, reckless drivers, crime, oligarchs, etc.