Because both North America and Australia have sea coasts, North America is a group of countries; yet, because every country in North America has access to the ocean, it has no landlocked countries.
And because Australia is a one united country surrounded by ocean, it does not have any landlocked countries either.