That's an aftermarket alarm siren. So sometime in the past, you had an aftermarket alarm in the car. Someone must have yanked it and cut the lines to the siren.