It’s not because you didn’t want it badly enough. You regained that weight because the contributors to your body weight, such as what, when, and how much you eat, as well as how you expend energy (including your inclination to move), are not completely under conscious control.