There's a pattern where criminal organizations fill governance gaps rather than starting as genuine governments. The Yakuza did this opportunistically at certain historical moments. Hamas is a similar example (not a criminal organisation, but..) , allthough they are more of a institution-building than the Yakuza ever was.