Some shoes have been designed for walking on various surfaces. That means that you can, for example, ride to a location on your mountain bike, then hop off and hike some trails.
In general though, mountain bike shoes are primarily designed for biking. They will, for example, usually have a stiffer sole than on normal shoes. That makes them great for cycling, but not as comfortable for walking in as regular shoes.