Because they support a lot more features?
I made a similar "framework" in PHP years back as an experiment and it was a couple hundred lines AT MOST.
I made a similar "framework" in PHP years back as an experiment and it was a couple hundred lines AT MOST.
Not necessarily. For example, some minimal web frameworks actually provide multiple routing strategies because different implementation strategy have tradeoffs.
In your own example, having multiple ways of declaring routing is not required to be considered usable.
So, yes.