Why were there kingdoms created from Alexanders empire?

Alexander left no clear heir, and after his death his generals divided up his empire and fought amongst themelves. It eventually settled down to Macedonia, Syria and Egypt.