Why Beethoven composed classic music?

Beethoven only composed very few pieces in a "classical tone", primarily his first symphony. He was taught by Haydn, a classical composer, so it would make sense for Beethoven to start off by composing a classical piece. Later on in his life though, he composed very Romantic style music. His second symphony, Eroica, was a key example of the romantic era.