Assuming that you're playing the browser version, unfortunately browsers sometimes just clear data automatically, it's not really related to the game itself.
My recommendation is, once you finish playing to go to the Main Menu and Export your saves so you can import if it happens again.
But if you want, you can send me a email at tightlybugfix@gmail.com, and I can try and see if I can recover some of your progress.