You usually need to return relocation costs if you quit within a year, and they'd lose out on the severance as well.. But yes, it does make sense for some people especially ones on a work based visa.
it's often easier to get a new job when you already have one. the severance would have to be worth a significant number of months of pay before it pays for the longer time looking for a job afterwards.