Adding a car key to an iPhone requires going through the manufacturer's app and then pairing the phone to the car via NFC.
Before you get behind the wheel again, clean up CarPlay by going to Settings > General > CarPlay > [your car] > Apps on your iPhone. Drag the triple-line icons on the right to rearrange their priority ...