The two concepts are not mutually exclusive: You can write music that you're really passionate about, but still demonstrates mastery craftsmanship from a technical standpoint.
Like, I'm not a "materialist" generally but it's the whole "it comes from the heart" thing that actually gets one into trouble, because it allows one to rationalize any lack of progress in their work, quality, etc. with romanticism.
Romantic idealism should be an inspiration to create but not the source of creation itself. That's how you get abstract conceptualist nonsense. Craft has to be the means by which to actually make something into being, and this can be objectively defined.
You just don't see this mentality in so many other things. If you bake a cake for your wife's birthday, will she care that it comes from the heart if the cake tastes like @$$? Like, maybe she'll appreciate the effort, but surely, if you really love your wife and this cake is coming from the heart, then you'll want her to love that cake. You'll want it to be the best damn cake she's ever stuffed in her face hole. In order to do that, you're going to need a recipe. If you're going to come up with your own, that recipe needs to be informed by previously successful recipes and the general knowledge that has developed in baking for thousands of years now. One might say there are "theories" involved in baking that one should understand if they want to make a cake that both is aesthetic and really tasty. The cookbooks and Gordon Ramsay screaming in your ear aren't there to help you merely "understand the cake", they are there to actually teach you how to make the cake and become one with the ^%#$in' kitchen.
It's the same when you want to compose a piece of music or paint a picture.
If what you're making "comes from the heart" but you don't have the "head" ability to actually realize what the heart wants and will actually sound good, then does it even matter? No.
Not beyond deciding exactly what style of piece I want to write, no.