https://www.ncbi.nlm.nih.gov/pubmed/29174581 https://www.ncbi.nlm.nih.gov/pubmed/28168782
(you can find more by searching PubMed). Granted I have mostly done research on cyclists. What we tend to see is an increase in the strength of respiratory musculature which leads to an increase in functional lung capacity and this capacity would not vary much between individuals (even between pro cyclists and high-level amateurs). More important than lung capacity for performance is your diffusing capacity (how fast you can move oxygen from lungs to your red blood cells). In sports other than swimming, it's always possible to breathe faster, which benefits from a strong respiratory musculature.
when it comes to freedivers, it's slightly different. They are forcefully stretching their lungs (which doesn't happen with normal aerobic training or breath holding to the same extent)
in this study https://erj.ersjournals.com/content/41/3/760.long they stretched their lungs as much as +800 ml.