Even Alaska, which has pretty restrictive rules for state residency (because state residency determines getting an annual payment from the state) allows out-of-state college students to maintain state residency as long as they line in Alaska while they’re not attending school.
It’s the “place of abode” that determines residency for most states—and for college students, the place of abode is their permanent address, which for most dependent traditional-age college students is going to be their parents’ or guardians’ address.