Question: why x sounds like z?
Answer: In words like "xylophone" and "xenophobe", the "x" represents the Greek letter "ξ", which is pronounced "ks". Even when it comes at the beginning of a word -- the name of the letter in Greek is "xi", which is pronounced "ksee". Languages change over time, and this includes the way they are pronounced.