Neither. Though I did learn a little bit about poetry at school. No, my poetry came from an inner urge to self-expression. I wrote quite a few poems when feeling really despondent and down whilst living away from my loved ones. However, I did compose other, lighter-vein ones at times.
I think real poetry, as distinct from just rhyming words for the sake of rhyme, comes from deep within. It is an intuitive flowing of ideas, emotions, pictures which find themselves onto a written or typed page via the words we have in our minds. It a cathartic clearing away of pent up emotion.