The horn sounding upon entry to the vehicle has happened to me a few times as well. I believe it happens under these conditions:
Entry into the vehicle on the passenger side and enabling Accessory Mode, say to listen to the radio. Manually disabling accessory mode or allowing it to automatically time-out, then exiting the vehicle from the passenger side again. Later on, after entry to the vehicle on the driver's side and upon closing the door, the horn will sound. It will happen this way every time in my case.
Now, if I just open and close the drivers door AFTER exiting from the passenger side, the horn will not sound when entering the vehicle later on.
I believe the car thinks you left the keys inside because it did not detect the driver's door open and close after the car's accessory mode was turned off.