Huh, I feel the exact opposite- it's like coding with a bunch of extra frustrations like shopping and cleaning, and the possibility of messing up in an irreversible way (burning something, for example).
Software production involves planning, gathering requirements, estimating, testing, refactoring, evaluating acceptance criteria.... not just writing code. Personally, yes, the coding is one of the more fun parts. The others are like cleaning dishes, which I hate to do above all else. But I love to cook (and I love a clean kitchen) so I put up with the rest.
But I hear you on the burning. I've burnt plenty of things in my time. I think any cook worth their salt has. Story time: an executive chef I once worked for had a keychain that looked like a pewter ingot. She said one evening as they were finishing their shift, they thought they could leave a 30 gallon pot over very low heat to make a reduction over night. When they arrived in the morning, the pot had mostly melted and the stove was on fire. Her keychain was part of the melted pot, her reminder to never do that again. Live and learn (and hopefully don't burn the house down)!
That's all part of the fun of learning to cook. I've burned so many things over the years it's almost like a game. I've made hundreds of ommlettes for breakfast and burned at least 30. Each time it was a learning experience, and it taught me to pay attention to what I'm doing and not get sidetracked trying to pack for the day or take garbage out or clean the refrigerator.
Cleaning isn't so bad if you handle it immediately and treat it as a meditative experience. I just think about whatever while washing dishes or throw on a relaxing podcast occasionally.