Answer: Because in the legends, after King Arthur's father die, the nobles of Britain began disputing the right of succession. Merlin's magic ensured that only the rightful ruler of Britain could pull the sword out of the stone.
Backstory: Merlin put the sword into the stone in order to ensure the king rules Britain.