What is different between Aa and Tt?

Many apps use Aa and Tt, sometimes the second letter in small caps, to indicate a text field or to display font options. Is there any different between them? What are the cases in which one should be preferred to the other?