Those aren’t posterior values of a probability, they’re posterior samples of counts ranging from 0 to n. To get the samples of p, I would add a line to your original model statement along the lines of
pm.Deterministic('p', p)
and then extract its values from the trace.