An oxygen sensor in the exhaust stream makes certain there is sufficient oxygen accessible for the catalyst to operate and adjusts things if needed.
For illustration, the catalytic converter utilizes a catalyst and oxygen to burn off off any unused gasoline and selected other chemicals in the exhaust.