As someone who regularly fasts for a variety of reasons, I would agree -- it's nearly impossible to gain muscle while fasting anyway, and without working out in any way I can't imagine how that could happen at all.
But most likely the tool is measuring inaccurately.