Why does Australia have a capital as it is also a continent?

Australia is the only continent that is also just one country. All large countries have capitals and, therefore, Australia has one.

Other continents, having more than one country, have capitals in each country.