with ecu's "learning"
They take reading from engine sensors and adjust air/fuel mix then check on emissions side of things, then adjust as necessary. Simples
See if any faults are stored, do a service, see if things improve, if not, get a multimeter and check lambda sensors reading on cat. Most of the time bad mpg is caused by an old crusty sensor somewhere. And odds on its a O2 sensor in my experience.
Google testing lambda sensor if you don't already do it.