There's a setting for what doors open on unlock. Likely your car was locked, only the hatch unlocked when you opened it. With the keys in golf bag, surrounded by metal tubes, it was likely in a significantly reduced rf state, the clubs acting like a partial faraday cage.
This is assuming you pressed the hatch close button, not the close and lock button.
|