Nobody knew that Putin was going to invade Ukraine. Imagine that you’re a Russian officer training with your troops in Belarus just before the war started in February 2022. You’ve just sold all the gasoline your unit depended on. And you just got the order to invade Ukraine.
I bet Russia has far more oil and gas reserves than the U.S. does.