Here's why:
* Covalent bonds occur when two atoms share electrons to achieve a stable electron configuration.
* In H2, each hydrogen atom has one electron. By sharing their electrons, they both achieve a stable configuration similar to helium (two electrons in their outer shell).
Let me know if you have any other questions!