My thermos. It keeps hot things hot. It keeps cold things cold. How do it know?
Damned If I Know
Things at rest tend to stay at rest. Thinks in motion tend to stay in motion. How do they know?