Why North And South America Are Two Continents
Here is the uncomfortable answer: because that is how your school decided to count. There is no geological law dividing the Americas, no treaty, no scientific body that ruled on it. Continents are identified by convention rather than any strict criteria, and a very large share of the world was taught there is exactly one America. If you learned seven continents, you learned a regional custom and were told it was geography.
Nobody Can Define A Continent

This would be easier if there were a rule. There is not.
Continents are large areas of land identified by convention rather than any strict criteria. There is no agreed requirement for size, and no agreed degree of physical separation.
Several continents are defined not as distinct bodies but as more or less discrete masses of land. More or less is doing an enormous amount of work in that sentence.
Half The World Says One America

The seven-continent model is not the global standard. It is one of several.
North and South America are taught as a single continent, called America, in Latin America, the Iberian Peninsula, Italy, Greece, Iran and parts of Europe. That is a six-continent model, and in some versions a five-continent one covering only the inhabited ones.
Western Europe, China, India and the English-speaking countries teach seven. Neither group is wrong, which is the inconvenient part.
Six Does Not Mean Six

There are two entirely different six-continent models and they disagree about different things.
One merges North and South America. The other merges Europe and Asia into Eurasia while keeping the Americas apart, and that version is preferred by Russia, Eastern Europe, Japan and much of the professional geographic community.
So if a traveler tells you they have visited all six continents, the correct response is to ask which six. There is also a four-continent model, consisting of Africa-Eurasia, the Americas, Antarctica and Australia.
You Can Walk Between Them

The core argument for one America is difficult to dismiss.
You can walk from Patagonia to Alaska without crossing an ocean. The Isthmus of Panama joins the two landmasses, and Iberian and Latin American geography emphasizes exactly that contiguity.
Against that, English-language geography emphasizes the narrowness of the connection. Both are arguments about the same strip of land, reached by deciding in advance what matters.
Africa And Asia Got Different Treatment

Here is where the rules stop pretending to be rules.
Asia and Africa are joined by the Isthmus of Suez, exactly the same arrangement as Panama, and everybody keeps them separate without argument. Nobody campaigns for Afrasia.
Meanwhile Europe and Asia share one continuous landmass with no isthmus, no strait and no water separation whatsoever across thousands of miles, and the seven-continent model counts them as two. The Americas at least have a case.
Every Model Breaks Its Own Rules

Try to build a consistent system and it collapses immediately.
If separation by water is the test, Europe and Asia fail. If continuous land means one continent, Africa and Asia should merge. If size is the test, Australia is an island that got promoted and Greenland is an island that did not.
Every model requires at least one exception to its own rules. There is no version of this that survives contact with a pedant.
They Really Were Separate Once

In fairness to the splitters, the geology supports them for most of history.
For tens of millions of years a seaway separated the two landmasses. Ocean water flowed freely between what are now the Caribbean and the Pacific, and the animal populations of each side evolved completely independently.
The isthmus is a recent arrival, largely the product of volcanism from relatively recent subduction tectonics. The connection is the new development, not the separation.
We Cut It Again In 1914

There is a cheerful irony sitting in the middle of the land bridge.
Having argued for a century about whether a narrow strip of land makes the Americas one continent, humans dug a canal straight through it. The Panama Canal severs the isthmus with a navigable waterway.
So the walk from Patagonia to Alaska now requires a bridge. The one-continent camp has had to accept a technicality.
All Of Panama Is North America

If you do split them, you need a line, and the conventional one is political rather than physical.
The boundary is usually drawn at the Panama-Colombia border, which places the whole of Panama in North America despite the canal sitting well to the north of it.
The border runs through the Darien Gap, a roadless jungle that makes the line feel more like a gradual fade than a boundary. The continental divide of the Americas is a place with no road through it.
Colonial History Did The Rest

The reason English-speaking schools landed on seven has little to do with rock.
Separating North and South America reflected the distinct colonial histories and political identities of the two regions, and the seven-continent model became dominant in English-language education largely through timing and imperial influence.
Spain and Portugal colonized across the whole hemisphere and kept calling it one America. Britain did not, and taught two.
The Numbers Are Not Close Either

One practical argument for splitting is that the halves are genuinely different sizes.
North America covers about 24.49 million square kilometers against South America's 17.84 million, with populations near 515 million and 371 million respectively.
Combined, they would form a continent second only to Asia. Treating that as one unit is a choice, and so is treating it as two.
The Short Answer

Because the English-speaking world decided to count them separately, and the habit stuck. There is no scientific definition of a continent, no rule about how much water is required, and no authority empowered to settle it.
Latin America, Iberia, Italy, Greece and Iran teach one America. Russia and Japan teach six continents by merging Eurasia instead. Both halves of the Americas sit on the same unbroken piece of land, joined by an isthmus we then cut a canal through. Whichever answer you were taught, somebody else was taught the other one and is equally confident.