Dependent or independent data?

How do you know if the data are dependent?

This is a biological question: if there’s no reason not to compare value 1 of group 1 to value 3 of group 2 the data are independent. If there is a reason to combine value 1 from group 1 with value 1 from group 2 the data are dependent.