Question: why did mihawk become a shichibukai?
Answer: Boa Hancock became shichibukai to protect Amazon Lily from marine. Gekko Morai, Doflamingo, Crocodile etc had their black work or evil deeds, which needed to be protected from marine.