I am confused about the difference between the representability of a set in a theory and the definability of a set in a theory. Part of any given introduction to the incompleteness theorems goes over the definition of a set being strongly/weakly represented in a theory, and shows that for consistent recursively axiomizable extensions of Robinson Arithmetic, the only sets that are strongly representable are the recursive sets and the only sets that are weakly representable are the recursively enumerable sets, so by Post's theorem they're the $\Delta^0_1$ and $\Sigma^0_1$ sets, respectively.
The definition that I have seen for weakly representing a set is that a theory $T$ weakly represents a set $S$ iff for some formula $A(x)$ in the language of the theory, if $n \in S$, then $T \vdash A(n)$.
To me, that seems like it just says that $S$ needs to be definable by some formula in the language of $T$ and $T$ needs to prove $A$ holds of each $n \in S$.
My issue is that given what I've stated above, it seems to me to imply that a theory can not prove anything other than $\Delta^0_1$ and $\Sigma^0_1$ statements. But clearly that isn't true, because there are $\Pi^0_1$ sentences easily provable in PA, for example.
So clearly I am not understanding something. Why can PA prove some given $\Sigma^0_3$ sentence but it cannot represent the $\Sigma^0_3$ set that the sentence defines? How can ZFC talk about $\Pi^2_3$ sets if it can't represent them? More to my actual point, what part of the definitions am I not understanding?