Sources for the proof of this claim: If $a$ is non zero non unit in a PID then $a$ has at least one irreducible divisor.
Definition of irreducible element: a non zero non unit element $p$ is irreducible if whenever $p=ab$, then $a$ or $b$ is a unit.
Note: I need this step to prove that every PID is UFD.
One user's answer:
Let R be said PID and suppose a∈R is a nonzero non-unit. Then, the principal ideal aR is nonzero and proper (i.e. aR≠{0} and aR≠R). Therefore, aR is contained in a maximal ideal M, which is principal. Therefore M=pR and a∈aR⊂pR. That means that a=pr for some r∈R∖{0}, so we just need to prove p is irreducible. Well, otherwise, p=xy for some non-units x,y∈R, which would imply pR⊊xR⊊R contradicting the maximality of pR.
What I don't understand in the answer :
Why if p is not irreducible then it implies p=xy, where x and y are non-units? This is the only step that I still can't grasp?