They had so many slaves that they were constantly afraid of a slave revolt, so trained relentlessly to be able to put it down. Slaves are the reason Sparta is Sparta.
Individual Spartans didn't have slaves (like other nations, where individuals owned slaves). Instead, the Spartan military state owned all slaves called "Helots". So yeah, the movie 300 is very far from reality.