wiktionary
ref
From clock + -work
etymonline
ref
clockwork (n.)
also clock-work, 1660s, "machinery and movements of a clock," from clock (n.1) + work (n.). Figurative sense of "any regulated system of unvarying regularity" is recorded earlier (1620s); also as an adjective in this sense (1760s).