It's one of those things I picked up from when older people taught me how to drive. Presumably from when hand brakes were more likely to fail than on modern cars. Maybe if someone crashes into the car while it's parked.
Either way I still do it. And turn my wheels towards/away from the kerb on a hill as appropriate. Probably useless but if you have a fail-safe, may as well apply it.