While the exact reason is still a topic of research, scientists believe that their long necks allowed them to reach food from tall trees, giving them an advantage over other herbivores. Some theories also suggest that long necks helped them regulate body temperature or even helped in display or social interactions.