Table 310.16 gives the _ampacity_ of conductors. It doesn't tell you the current that the conductor is permitted to carry in all circumstances; it simply tells you one feature that may limit the installation.
Ampacity is the maximum current that a conductor can carry without overheating, given the specified ambient conditions and conductor insulation temperature limits. #12 THWN can carry 25A without overheating, and if you have 90C insulation, then it can carry 30A without overheating.
Other parts of the code place _additional_ restrictions on #12 conductors. In general, #12 may only be protected by a 20A or smaller OCPD. I believe that this is for reasons of short circuit protection, not overload protection...but a side effect is that the continuous loading is reduced.
Hmm, copper.org would hate it, but I wonder if 'small conductor' OCPD could be designed which would safely permit small conductors to be used to their full ampacity.
-Jon