Assuming they are themselves and not an illusion, impostors or training in the danger room would not be the first time writers ignore this details involving decimation. But if had to explain this without going too deep just put the blame on Mothervine virus. Although the events of X-men Blue were addressed only in this comic was a big event creating mutants and causing those who lost their powers to recover them again.