I suppose gas hobs are not on for many hours per day like fires/heating. It's about space and balance. A fire on for 14hrs per day will have more time to burn up all the oxygen in the room. Same with the boiler. Must be well ventilated. A hob is not on for lengthy periods so is not likely to use up all the oxygen unless as stated above the room is tiny tiny with no ventilation. Maybe you are presuming carbon monoxide is produced from the gas itself.. It's produced when the fuel cann't burn as intended.
Found this now:
Carbon monoxide is produced when fuels such as gas, oil, coal and wood do not burn fully. When a fire burns in an enclosed room, the oxygen in the room is gradually used up and replaced with carbon dioxide. Following a build up of carbon dioxide in the air, the fuel is prevented from burning fully, and starts releasing carbon monoxide instead.