in spd style pedals in my experience your foot never "just pulls out"
what happens is; while your pedalling hard your foots heel goes to far over to the side and unclips.
i think for the most part random unclipping just means your using sloppy pedalling technique.
but then clips and straps will accept your sloppy technique with no danger.