Existence of K and Q is explained, but why are they there? k was kept only for some words and q was used in qu. Note that transcriptions from Arabic (Iraq) use q without a u. Did Semitic alphabets have predecessors for both?Google is your friend:
https://www.superprof.co.uk/blog/ancient-latin-alphabet/