Could it also be alcohol consumption? Seems consistent with drug use.
https://www.washingtonpost.com/news/wonk/wp/2014/09/25/think...
As far as I can tell they either burn stuff to see how much energy gets released or count up macro nutrients and multiply by x calories.
But if you pay attention it should be obvious that you don't digest all foods equally well and I would say the variance can be on the order of 20-30%. Do they account for this when labeling food ?
Later: Seriously. Shift work is terrible for sleep and has been a fact of industrialized life for a lot longer than the gig economy.