Inherited from Proto-Slavic *kǫda. Cognate with Czech kudy, Serbo-Croatian kuda, Russian куда (kuda).
kędy