The operators are a natural guess on the lines of "if p and x were integers".
And then we can prove the ladder properties easily.
The commutator appear in the middle of this analysis.