In the winter, if you lay off the heat and only use enough covers to keep it bearable, you'll burn cals while sleeping to keep warm.
Of course, in the summer you may sweat off cals while sleeping if it's very hot.
I really think HVAC has a lot to do with our obesity problem.