Additional wire on light switch with no 3 way
Without KNOWING how it was connected (which it's always good to document before you tear stuff apart, but too late for that) I'm going to GUESS that the outlets were getting their power by being joined to the unswitched hot feed to the switch.