My diet was bad and I was eating far above 2000kcal on many days. I just exercised a lot. 1h of fairly intense cardio at least 6 days a week, though I would always round up to the next 10 min mark and do more like 70 or 80 min per day.
Some days I would order pizza or something and some dessert in the evening when I knew this would push me into the 3000kcal range and in return did 2h or 3h exercise routines fairly regularly, often times while eating the pizza.