It's quite possible to have an external sump, if that's put in at build time it doesn't even cost a lot more, since the basement area has already had a large hole dug to put the basement in. Most people don't...
Better yet is a drain sloping downhill to daylight that does not need a pump, so it does not depend on power to the pump - but terrain must allow that, and the ditch for the pipe needs to be dug at a small extra expense.
Many basements are indeed built with the hopeful, but incorrect (virtually always) belief that they will keep water out.
Then they don't, and water needs to be removed from below the basement so it does not get in. It costs easily 10X as much to install an external drainage system at that point, since everything has to be dug up again, so chopping a hole in the floor for a sump pit is a lot more affordable, and that's what's normally done.
Some builders build one in to the basement in the first place, presumably because their customers expect to see them, and explaining an external sump might confuse some, and anyway it would cost a tiny bit more at build time that would not be recouped at sale time, which is math that builders don't like.