Here's why:
* Carbon (C) has 4 valence electrons.
* Oxygen (O) has 6 valence electrons.
Carbon monoxide forms a triple covalent bond, where carbon shares two of its electrons with oxygen, and oxygen shares two of its electrons with carbon. This leaves one electron pair each on both carbon and oxygen.