Earlier quoted context omitted.
Put an interface around it and you can change the underlying data structure.
Except for when you can't, because all abstractions leak. https://www.hyrumslaw.com/
Of course there are always times where you can't.
But most of the times you can.