The Confederate general had nothing to do with it. Someone who’d been working on the railroad didn’t know how to spell. Lee’s Summit, Missouri, has an elementary school, a middle school, and a park, all bearing the name Pleasant Lea.
Samuel Pepys was a man of somewhat humble beginning, but he also had family in the British government and that had gone to Cambridge. These connections provided him an entry into the Admiralty where Pepys spent much of his working life.