It's mainly to balance the game out. They wanted a powerful type for you to face towards the end of the game, so dragon only had two weaknesses. However, they knew that dragons would be used a lot competitively, so they made them weak to themselves, so that, if they are powerful, at least the metagame is a little bit more balanced.