I thought this when I was younger too. Now I hate seeing the meme "code is the easy part". There are, of course, other hard parts too but to trivialize coding is silly.
For the most part, code is, indeed, easy. For you or for me. But some people just can't. I've stopped trying to understand, and just accept is as a fact.
For me, it was “money for nothing”, best job in the world because it was also my hobby. Not everyone is that way. Easy as breathing for some, completely incomprehensible alternate dimension of reality for others.