At the time of its release the Nintendo Switch’s CPU was only a single generation behind the latest offering by ARM; and its GPU was by far the most powerful mobile GPU available. It doesn’t hold true for Switch.
What happened is that mobile compute has advanced tremendously since 2017 and Switch is stuck on technology that was leading in early 2017.