When a car alarm goes off, it is a warning that an unwanted person is entering your vehicle, or basically you are accidentally pressing the "activate car alarm" on your portable lock unlock car...
I've seen this happen due to several causes. Strong winds can shake the car enough, parking on a slope, heat, the panic button getting pushed by a key in your pocket. Also, a weak battery, corroded...