TL;DR: Railroad developers were granted alternating square mile sections as a reward for their investment.