The reason age hits ground coffee so hard is worth understanding, because it changes what you buy.
Coffee goes stale through oxidation and through the loss of volatile aromatic compounds. Grinding increases the surface area enormously — a huge multiple of whole beans — so a ground coffee stales in weeks where whole beans take months.
What you taste as it declines is fairly specific: the aromatics go first, so it smells of less; then the acidity flattens; and eventually you get a dull, cardboard-like quality. It is not usually sour or rancid, it is absent, which is why people describe stale coffee as tasting of nothing much.
A three-month difference in shelf time for pre-ground coffee is easily enough to produce the gap you are describing.
Also worth checking: whether the bags have a one-way valve, and whether either had been opened or was stored somewhere warm. A bag left in sunlight in a shop window ages far faster than one in a stockroom.