Who knows? You haven't provided any information to help take a guess. Could be many things, from a bad SD card to operator error. But bottom line is you lost the photos because you failed to back them up.
As far as recovering the photos, if they were saved to internal storage see this: