Also there's more complexity and overhead on a pi for simple tasks. And you potentially have to worry about updating the system and packages and other maintenance.
Not saying microcontrollers like the ESP32 are completely invulnerable to failure but it certainly is less likely.
And for another anecdote on uptime, I have a few Arduino-powered devices operating 24/7 for well over a decade now.
I bet me writing this comment used more while keeping my laptop alive.
I love ESP32s, built a long running device for my car, where the power draw is important because I don't want to deplete car battery. It uses almost no power. However if it was running connected to a power grid, I'd not care about the electricity cost.