Weight Loss and All-or-Nothing Food Protocols

I’m getting thrown off by all the food restrictions in the weight loss course. If eating is enjoyable and we have to do it every day anyway, why would we take away the option to enjoy our meals? Especially if enjoying foods like sugar and flour is possible in small quantities without a negative outcome? I can’t seem to get around the thought that it’s a punishing way to live.