That doesn't mean there isn't an active role you have to play in making yourself better. Moving may get you over a hurdle of feeling hopeless, but if you aren't active in pursuing self improvement you'll quickly find yourself in the same spot.
Of course it doesn't, that is why it's just a component of the change. And it's not only about getting over of feeling hopeless. Change in environment helps you to break routines and create new ones. Hopefully ones which guide towards a better path.