The notion that the universe runs like a mechanical clock arose in the 17th century leading to the mechanical philosophy.
While Newton saw the world as following definite laws, he also imagined an intervening God to keep things running smoothly.
Descartes saw no difference between man-made machines and nature’s “machines”, other than the former had to be big enough to see.