Xbox games uninstalled randomly after a console reboot

So I was casually playing fc 25 on my Xbox and it froze for no reason, I closed the game and tried getting back I waited a minute and I noticed it doesn't work, I tried getting into a different game and it just made the pressing sound but nothing happening so I restarted the console and now fc 25 alongside 20+ games have been deleted. Why?