2016 xmr cut off

So I was riding Saturday, was in a moderate hole, water not over the snorkels, exhaust wasn’t under the water. I had to lean it to the side trying to get t out and I let off the gas and it eventually just shut off. I didn’t try to start it up until i winched it out and was back on dry ground. Checked the oil wasn’t milked. Started up after just a few seconds. Has rode fine ever since. Any ideas on what might have happened?