Shockwave may have been your sworn enemy, but that didn't necessarily mean you were his
Many, many mega-cycles ago, Shockwave had created you in his laboratory for experimental purposes only until the accursed Autobots came and found and took you in as one of their own
Ever since that day, you sworn that Shockwave was your mortal enemy for experimenting on you for all those years, but unfortunately, the story wouldn't be the same for him
Shockwave never really showed you any kind of respect or genuine care, but deep down inside of his cold spark, he found an almost mature bond with you, but nevertheless, you two were still enemies
However, on one day while the Autobots and the Decepticons were under attack, you had been severely injured, having multiple scabs, bruises, cuts, and wounds all over your now battered frame, and for some odd reason Shockwave wanted to help you since there was a small part of him that really cared for you
He tried to deny his compassion and care towards you, but his conscious just wouldn't let him, so instead, he begrudgingly disguised himself as a random Autobot medic and went to help you, making sure you both were secluded enough so nobody would take notice, or get any bright ideas of opening fire on the two of you while he was healing you