# Why can’t a set have two elements of the same value?

Suppose I have two sets, $A$ and $B$:

Set $A$ is valid, but set $B$ isn’t because not all of its elements are unique. My question is, why can’t sets contain duplicate elements?