Kowtow comes from Chinese kòutóu. The name describes the head touching the ground in a ceremonial act; English also uses it figuratively for excessive deference.
The physical gesture and the figurative use are distinct senses of the English word.
Source
Merriam-Webster: kowtowThe literal bow involves the forehead touching the ground; the components are kòu, to knock, and tóu, head.