The CASE learn is no surprise (but it's a good idea to do whether it throws a code or not). The security relearn is a surprise. The previous car's lock cylinder must've produced a very similar resistance to yours.