It is not a myth that rabbits eat carrots, but it is a bit of a misconception.
Breakdown
Carrots are okay in moderation: Rabbits can eat carrots, but they should not be a staple. Carrots are high in sugar, and too much can lead to obesity, dental issues, and urinary tract problems.
Hay is the most important: Rabbits need a diet primarily consisting of Timothy hay, which provides essential fiber for their digestive system.
Variety is key: A balanced diet also includes small amounts of leafy greens and a few pellets.
Conclusion
Rabbits can eat carrots, but they should be given in small quantities as an occasional treat, not a primary food source.