Let's see John 1:1,2
1In the beginning was the Word, and the Word was with God, and the Word was God. 2The same was in the beginning with God. -- you asked "God is used three times in these two verses, can you identify who is being spoken about from these verses?" -- the who is the Godhead -- God, Father-Son-Holy Spirit
Because the Word was God.