The local variants are actually older than standard Arabic (they all seem to stem from a common source). The standard Arabic is a synthetic language invented by grammarians who selected what they considered the best of all Arabic dialects at their time and formalized it. The general wisdom that the local variants are deformed form of the standard Arabic is not supported by linguistic research.