If you consumed the same amount of food, how did you substitute the sugar you took away? Sugar has a lot of calories per weight, if you simply reduced the calories intake then losing weight isn't unexpected.
Eating something less sugary may have had a knock on effect and reduced the amount of food eaten later.