Idk about citrons specifically, but spicy peppers are also unpalatable to most animals. They propogated through birds which lack the ability to taste spicyness. Im guessing here, but they probably spread a similar way: whatever ate and then pooped out the seeds just didnt taste the sour.
Then humans showed up with they freaky self, in both cases.
To add on to this, both citrus and peppers may have been cultivated to be spicier/sour-er by humans far beyond what existed in the wild
/unfounded speculation
Very good point!
Citrons were domesticated before other citrus so I think they originally spread when there wasn’t much competition in consumer markets. Citrus genetics are weird and convoluted though, there’s been a lot of hybridization and a bunch of things we call oranges, lemons, or limes are actually citron hybrids. Also, a lot of citrus consumers are familiar with now didn’t really exist until relatively recently.

