They use 12 months because some of the indicators lag by many months. Some data is only generated quarterly or biannually so looking at a smaller timeline wouldn’t really be helpful. The real issue is that CPI is not a poor metric anyway. It was watered down in the 80’s for political purposes to make them look better(on both sides, not one party or the other). Quite frankly, I don’t trust CPI. In my opinion, the best metric for inflation is your eyes vs the rate of change in prices. If you notice several price increases over a span of several weeks, inflation is a problem.