A set is a collection of distinct items where order does not matter. Think of it like a bag of marbles: you can see which marbles are inside, but there is no "first" or "second" marble.
The set equals because sets ignore order. Also, equals because sets have no duplicates.
Sets work differently than arrays. In an array, differs from because position matters. Sets throw away that information.