After running some test on my computer I found that when you have a prime $p$, then $(p-1)! \textrm{ mod } p$ always equals to $p-1$ and that $(p-2)! \textrm{ mod } p$ always equals to $1$.
Why is this the case? (I don't need answers on both findings, just one as when I know that why $(p-2)! \textrm{ mod } p$ always equals to $1$ then just by multiplying it by $p-1$ we get $(p-1)! \textrm{ mod } p =p-1$ and vice versa).