Commodity prices often move based on escalating geopolitical tensions, as is happening now with crude oil amid ongoing military strikes between the U.S. and Iran.
Besides speculative gains, investors seek out hard assets for their "safe-haven" status. They are also often perceived as a hedge against inflation.