The main reason commercial airlines board passengers from the front to the back is to maintain balanced weight distribution. It ensures that neither the front nor the back of the airplane is bearing too much weight. Airplanes, of course, are typically heavier in the back.