I have the completely unsubstantiated opinion that a lot of the "dumb" things actually fire the neurons we need to be proficient at the "smart" things.
Coding by hand almost feels like learning the rules to a new board game. It's tough, it takes tenacity and a certain kind of intelligence (that we all have). Some people hate it. But it's an absolutely necessary step toward mastering (or simply enjoying) the game.
Well, of course. This is why the nerds like me that found coding fun became decent at it.
I have some rudimentary research to substantiate your opinion:
https://blog.miloslavhomer.cz/use-your-brain-even-if-the-mac...
TL;DR: there's a study saying that thinking about simple things has more benefits than resting in the same period to achieve the harder stuff. There are also factors contributing to burnout.
So why do you not program in a hex editor, assembling the opcodes in you head? When sure the compiler will do that for you, but why would you be willing to risk not firing those neurons in order to be proficient at the smart things?
I also share your unsubstuntiated opinion. To add to this, what people describe as "boilerplate" is rarely a thoughtless process.
More often than not, I've questioned my decisions while writing scaffolding. Do I really need this class? Is there a way to automate this? If not, what differs? What can be abstracted? Some parts were tedious like keeping things consistent with provided Interface Documentation. Still I preferred going through the steps manually because I would also surprise myself by how many decisions I need to take and how many questions would pop up. Isn't this parameter a duplicate? Would this better serve us as a bitmask? How can we actually obtain X value that the interface states is supported here?
This part is fairly low-taxing work that can be done with some music in the background but it's still an active process, helps reinforce your mental model and question things. The things that were purely mechanical were easily automated (at least in the recent past where we've had a gazillion of utilities doing the dirty work of parsing pretty much any exotic, yet moderately mature data format).
I'm not saying LLMs can't do this work for you, but letting them do the "boring stuff" robs you of both agency and understanding because for the really "boring stuff" you don't need an LLM anyway.