Why do kangaroos have pouches?

Mother kangaroos carry tiny joeys in a pouch until the babies are big enough to hop outside.