Why would Skylar suddenly start growling at and attacking Cody?

Because he smells of anaesthesia.