While this is still speculation, we can assume the Abyss corrupting the Skyfrost Nail in the depths of the Chasm plays a role in the spread of Dark Mud and the troubles aboveground. Otherwise, the Dark Mud could be a product of the broken Ley Lines disturbed by Liyue's mining activities.