The hardest lesson I’ve learned in turning a programming hobby into a programming career is the following:
The vast majority of truly impactful code is really boring at a technical level.
So, yes, that’s sometimes why people write frameworks: to get some excitement in their code.