the sensor that senses that the door is open may be faulty it happens sometimes and its very common.
secondly even one of the latches of the door may be loose so its a good practice to check them especially if you have kids or old people sitting in your car.