I think originally its Sicilian organized crime, but the word became well known, so other groups adopted the word because it sounded cool and maybe in some cases law enforcement/others started refferring to any OC group as a Mafia. That’s really it.