We ive with numbers all around us, so it is no woder that they come into our idioms. 'Baby makes three'- you have a couple (2) and baby literally makes three. We use the numbers that are in our world in the idioms we use. In traditional Christianity, as seen in Dante's poem
Hell, the were nine circles, where people were punished in different ways, with the ninth being the worst.