The 12-month inflation rate was already 8% prior to the invasion in Ukraine. Gas prices nearly doubled between March 2020 and February 2022. Blaming inflation on the war in Ukraine only makes sense if you ignore the previous two years.
The months you selected are pretty much peak lockdown vs peak recovery, and are a reflection of demand for gas, not an oracle of some deep economic truth. Franky, I'm surprised the gas price difference is so small, considering the US economy shut down in March of 2020.
Demand (and prices) went down in March 2020, but had significantly risen in line with increased economic activity by February 2022.
Consequently, it shouldn't be surprising that there was a large price increase over the period bookended by those months.