Similar experience. Approach and walk-away lock enabled.
2025 X5 in garage, other car in driveway. Walked up to X5, it unlocked automatically (as it's supposed to), dropped off keys, coffee, etc. Shut the door. Walked to driveway car with wife (who has her phone on her and is also linked to X5). X5 then locked (fob inside). Had to take my wife's phone back to X5 to unlock, opened door so it wouldn't re-lock, and then took phone back to wife in driveway. Weird. As someone else mentioned, maybe the phone trumps the fob?