That was an alternate faction of the Borg from an alt timeline. History was not rewritten. The Real Borg were still in the Delta Quadrant after poisoned by Janeway. Agnes Nice Borg are distracted guarding a trans warp conduit across the galaxy. Shaw explains this in 304.

— Terry Matalas (@TerryMatalas) April 14, 2023