Well, carrot, celery, and cilantro (coriander) all share a common ancestor and it's not too fanciful to suppose that they might contain the same compounds that trigger people who have the aldehyde-detecting gene (ORA62) that is responsible for the dislike of cilantro.
There was a study written up here where the authors sequenced the cilantro genome and compared it to other plants, if you want to go down this rabbit hole.
There was a study written up here where the authors sequenced the cilantro genome and compared it to other plants, if you want to go down this rabbit hole.
https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7206992/