I always figured that it was to make sure that there was always a receptacle within 2' of any point along the wall to go along with the standard length of appliance cords.
The 12" countertop rule probably arose because folks started putting a short piece of countertop between the stove and the end wall...and some genius ran an extention cord to it for the toaster.