When i transform an object, the previous key frame changes as well
Shift your playhead to the keyframe, transform the object, hover your cursor over the 3D viewport, press "i" on your keyboard, and click "Location." To enable automatic keyframing, you can click  in the timeline editor.