Locks on your house only protect you from people who use doors. I'm not sure this argument holds up either.
There's a couple reasons locks work IRL despite this, one of which is that they don't really stop honest visitors. You don't usually want anyone coming into your house that you haven't let in yourself, unless they're family members with keys.