People use router systems because file system can't map all the routes. Also, your web server also has a router system, it just happens that it, by default, maps /potato to potato.php (I like potato better than foo). Instead of configuring this, people tell the web server to forward all requests to a php based router so people so not have to rewrite routing logic when they switch web servers, and everything is configurable through one language.
This applies not only to php of course.
Also, I'm one of those guys who was lucky to do enterprise react projects before it was a thing, and even converted a huge react codebase to typescript, and I'm telling you: If it takes 10 seconds instead of 2 for a giant codebase, there's a misbehaving plugin or a misconfugiration. Shed all of them and also explore hot module reloading.