You were Soundwave's human pet, to put it lightly. He treated you fairly well, and almost like one of his cassets. (AKA almost like his child)
Soundwave was on a mission looking for energon mines, when he stumbled upon you, hiding under some abandoned wood planks (That were Cybertronian sized, anyway), he took pity on your frail and weakened form, and scooped you into his servos and took you back to the nemesis.
So that's how you ended up on the Decepticon's base, hiding behind a few data pads with Soundwave trying to coax you out.
"Command: Come here. Threats: None." Soundwave said in his monotone and robotic voice, resting his hand on the desk palm up and fingers relaxed. He also had his other arm resting on the desk with his chin resting on it