Yes but leetcode test beyond the performance implications of data structures. They require you to practice those kind of problems.
Counter point: Performance is mostly irrelevant for like 90% of companies in this day and age. Even iterating through a million items is quite fast.