It was meant to use a rather odd "two-step" landing procedure where it first touches down on the lunar surface on it's rear/primary landing gear, then pivots forward/falls under gravity to also touch down on the front/secondary landing gear.
Presumably this landing procedure was simulated under lunar gravity, but it seems there are multiple potential failure modes:
1) After rear "leg" touchdown, over-rotate forwards over front leg (ending up on back), OR
2) After front "leg" touchdown, bounce/recoil backwards off front leg, flipping onto back, OR
3) Front landing gear hits rock on one side (left or right), thereby flipping it sideways onto back
The whole procedure seems to rely not only on having correctly simulated under lunar gravity (and with correctly simulated stiffness of the vehicle) to avoid scenarios 1) & 2) (which would be different under earth gravity), but also the softness of the landing site being uniform and as simulated - otherwise if landing site surface was harder (rock) or softer than expected, or uneven, then this type of pivot and bounce/not landing would not go as planned.
NASA seems to have done a better job in designing fool-proof landing mechanisms, from the bouncing ball of the first mars rover, to the sky-crane landing of the latest one (which appears over-complicated, but no doubt was chosen at least in part because it is in fact more predictable than the alternatives).