Your friend got lucky..
Normally the gate's BP machine is the final point to record that you are actually boarding the flight to leave. If it doesn't get your name on the manifest that way, you don't get your miles.
Most asian airlines at asian airports take the flight coupon at check-in. But other places usually leave it to collect at the gate.