The flying object was shot down over northern Canada where the Alaska airbase is closer than the Canadian alternatives (most of Canada's population and airbases are in southern Canada).
Also the F-22 can super cruise whereas the F-18 cannot.
I’m well aware of the CF-188 or F/A-18’s capabilities (or lack thereof compared to the F-22), from when I worked on them, sometimes in Cold Lake. ;)