Raspberry Pi 3 Seems to shutdown after being idle

Hi squad.

I recently set up my raspberry pi and have noticed when I come back from work, the pi seems to be off.

Some more context, I have been remote Omegle SSH’ing through my Mac into the Pi via Microsoft Remote Desktop.

The Pi isn’t hooked up to an external monitor, Appvalley so I’m just assuming the Pi shut off because I cant connect as I normally do through Microsoft Remote Desktop.

When I notice this, i just push the power button again, and im able to SSH into the Pi as expected.