We use it when we are comparing Two dependent samples. The paired t-test can be likened to the repeated measures ANOVA test. Both of these two test are useful when comparing how a static group does in different test conditions.
But the difference between these two are:
We use the paired t-test if the explanatory variable has two levels.
While the Repeated measures ANOVA is used when the explanatory variable has greater than two levels.