Why Did Sparta Become A Military Society?

How did Spartans develop their society?

.

Why did Sparta develop a military society?

Why did Spartan society revolved around war?

What was the major factor which turned Sparta into a highly militaristic society?