Why do sometimes cooking vessels get blackened on a gas or kerosene stove?

Because of the inlets of air getting closed, the fuel gases do not completely undergo combustion. Hence, it forms a sooty carbon form which gets coated over the vessels.