It appears like a couple of consonant sounds have been transposed. How, why did that happen?
Since Wednesday derived from Odin (Odin's Day) the n was already the stressed/more prominent sound. Over time, the o sound shifted into a W taking along the stress with it. Since English lacks a stop and this DN is such a difficult letter pairing, I suspect the n simply won out over time. No transposition was needed.