macOS automatically goes to sleep when it gets too tired. It conserves energy by keeping your system running at its maximum efficiency.