Why did they make 13?

Because they needed a number between 12 and 14. If 13 should not have been invented, 3 (sacred number) neither.