The seventh letter in the latin
alphabet, G, was created by the Romans because they felt that
C was not an adequate letter to represent both /k/ AND /g/.
G, which at this time took the place of the letter
Z, came to represent /g/. As /k/, /g/ too developed palatal and velar allophones which is the reason why today, G has different sound values in all Romance languages and English (due to French influence).