Most countries in the world use the QWERTY keyboard. The Central and Eastern European countries: Germany, Austria, Liechtenstein, Switzerland, Hungary, Poland, Slovenia, Czech Republic, Slovakia, Croatia, Estonia, Latvia, Lithuania, Moldova, Belarus, Ukraine, and the Russian Federation use the QWERTZ keyboard only because their languages use "Z" more often than "Y". However, I noticed that the Western European countries: France, Monaco, Belgium, and Luxembourg use the AZERTY keyboard with the letter "M" in the middle row instead of the bottom row. Great Britain and the Netherlands could also potentially use the AZERTY keyboard.
My questions are:
How did the keyboard layouts develop historically? Was there a practical reason to have these keyboard layouts?
Why haven't these countries reformed this redundancy by using the QWERTY keyboard instead of the AZERTY keyboard? Italy also used the QZERTY keyboard with the letter M in the middle row. At least Italy has reformed this redundancy by using the QWERTY keyboard instead of the QZERTY keyboard.