Why and how did slavery start?

Until it was globally outlawed, slavery has been an institution practiced since ancient times. Nearly all ancient civilizations had slaves.