Every proposition is either true or false, but not both. So, for each propositional variable, we have two choices.
A truth table will need $2^n$ rows if there are $n$ propositional variables.
Since, we only have one propositions $p,$ So, $2^1 = 2$ rows in truth table.