The soft spot is called a molera.
Human babies have it too.
Basically, babies (and puppies) are born with a slightly open skull so they can pass through the mother's birth canal without too much pressure on the skull and brain.
Usually the molera closes on its own, but it can stay open forever in some chihuahuas.