And even if it didn’t, it increases the attack surface. Random apps can ask for root, and the average user won’t know what it means.
And even if you know the risks, now it’s much more of a hassle keeping your device up-to-date.
So yes, rooting is theoretically a solution, but it’s not practical in the least.