This happened to me a few months ago, I was made redundant by my employer only to be immediately rehired as a contractor because they need my skills. Now they have to pay me more than before and I get to work from home and use the saved commuting time on bootstrapping my startup. I'd never go back as an employee now. So it was a pretty inefficient cost cutting scheme on their part.