Yeah, I thought it had to do with how silly it would be to go traipsing in the front door with a dragon living there (or even possibly living there). I can't remember for certain in the book, but I know in the animated movie, that's why they use the secret entrance. Gandalf mocks Thorin for even suggesting it.