The gamecube is 20 years old though and ever since then they've had the weakest hardware. I remember buying a Wii the month it released and being pretty disappointed at how bad the graphics looked.
The Switch's mobile chipset was basically as bleeding edge as you could buy at the time. But it was a mobile chipset, so couldn't compete with a PS4 or Xbox.
The main problem is that even if it was cutting edge at the time, they can't or won't upgrade it. Of course iPads, which do upgrade their SoC every year, aren't as good at playing games.