My Mac Mini also sleeps when not in use and only gets a reboot when there's a macOS update, which are typically months apart.
My Raspberry Pi runs Pi-hole and it gets booted every few months.
Everything is on a UPS so there's never a reboot due to power failure.