Stellar pair may have formed when wandering star stumbled too close to another