Routers sit in the middle of the house; locks sit at the far edge by the door, often through a wall or two. That is exactly where wifi is weakest, so the lock drops offline and guests get locked out.
The fix is proper coverage: a mesh node or access point near the entry. This is the step most installers skip — and the reason we lead with networking on every job.