A hypothesis test formally tests if two or more population means/medians are equal.
Inferences about related samples are complicated by the fact that the observations are correlated. Therefore the tests for independent samples are of no use. Instead, tests for related samples focus on the differences within each sampling unit.
When the test p-value is small, you can reject the null hypothesis and conclude that the populations differ in means/medians.