There is a glitch that causes me to lose everything after I leave the cave after the lizard boss fight, just like I got defeated.
Apparently, if I entered the defeated area and left, the game will think I lost and didn't pick up my equipment no matter what.
Thank you for the report, we're going to try and fix these tomorrow (developer is asleep right now)!