Wikipedia says:
The Constitution gives the power to the state legislatures to decide how electors are chosen, and it is easier and cheaper for a state legislature to simply appoint a slate of electors than to create a legislative framework for holding elections to determine the electors. As noted above, the two situations in which legislative choice has been used since the Civil War have both been because there was not enough time or money to prepare for an election.