It's because you probably locked it with the fob, and when you do, the fob also arms the car chime noise. If you get inside the car, lock it with the fob, and then open the door, the alarm will sound. If you lock your door with the key rather than the fob, the alarm will not sound when you unlock it.