An independent-samples t-test assumes that the two samples \(x\) and \(y\) are independent.
Independence means that the value of one variable does not translate to knowledge about the other in any way.
This also means that you can write the joint probability of two independent random variables as the product of their marginal probabilities:
\[ P(X=x \cap Y=y) = P(X=x) P(Y=y) \]