During the Spanish Viceroyalty of Peru, lima beans were exported to the rest of the Americas and Europe, and since the boxes of such goods had their place of origin labeled "Lima - Peru", the beans got named as such.Give the source, I cannot vouch for the accuracy of this story.