Canada chose Ottawa partly because it was harder to attack
When Queen Victoria selected Ottawa as the capital of the Province of Canada in 1857, the location offered several advantages. It was farther from the American border than some competing cities and stood near the boundary between English- and French-speaking regions. The decision combined strategic concerns with a political compromise.