A number of factors drive the value of the US dollar, including large scale factors having to do with economic cycles, government politics and international relations. But the dollar has also experienced inflation for most of the last century.
Inflation rose after World War I amid increased demand for food and other raw materials, which raised prices of most consumer goods up until the Great Depression, in which the country experienced prolonged deflation.