How do you replace the battery in your 02 Vue without the security alarm going off as soon as you touch the cables to the new battery?

I have a 2002 Vue with 2.2 Liter engine and manual 5 speed. Living in Florida the battery usually doesn't last longer than two years, three tops. I have replaced my battery two times (me, not the shop) and have never had the security alarm go off. Not sure why it would go off unless there was a problem in the system.