You need to pay more attention. The Universe was in an extremely hot and dense state and began expanding rapidly. After the initial expansion, the Universe cooled sufficiently to allow energy to be converted into various subatomic particles, including protons, neutrons, and electrons. Though...