On reason is that the EU (except Hungary) largely stopped importing gas and oil from Russia. One of the world's largest exporters of both. Pipelines into other countries do not have the capacity that the EU pipelines have. The EU then buying from other sources contributed to a shortage and rising prices.
Stupid corrupt leaders in Germany shutting down nuclear plants and relying on putin for basic needs