It’s in the Constitution. The men who wrote the document in 1787 disagreed about how the president should be chosen. Some thought citizens should directly vote. Others worried that many people weren’t educated enough to decide. As a compromise, they came up with the Electoral College.
CCSS: 6.SP.A.3.C, MP1, MP3, MP5
TEKS: 6.5.B