Here's why:
* Carbon's Atomic Structure: Carbon has 6 electrons. Its electron configuration is 2, 4. This means it has 2 electrons in its first shell and 4 electrons in its second shell.
* Valence Shell: The outermost shell of an atom is called the valence shell. For carbon, the valence shell is the second shell.
* Octet Rule: Atoms tend to gain, lose, or share electrons to achieve a stable configuration with 8 electrons in their valence shell (except for hydrogen and helium, which only need 2).
* Carbon's Needs: Carbon has 4 electrons in its valence shell. To achieve a stable octet, it needs 4 more electrons.
This is why carbon forms four covalent bonds (sharing electrons) with other atoms, like in methane (CH4) or carbon dioxide (CO2).