There's also, M' or Mag. Anyway, it's an orthographic convention and as such probably is not much subject to reason. The real names would've been written in their Gaelic forms: e.g., macDhomhnaill for MacDonald or Macdonell (as in the famous Sanskritist, Arthur).