How can lug nuts come loose?

rusty wheel studs? kept happening on my truck. torqued and also tight as you know what. 3-4 times it happened over the course of a year. thought someone was trying to get the tires at night, but finally figured out it was the rusty studs. cleaned then real well and no issues since.