Rainforest biodiversity results from habitat specialization rather than chance