I figured it out. Trying to make sense of why this would happen and nothing helped until I thought about it some more. Corrosion at the battery terminal would not allow the car to charge. As the battery charge got lower and lower, it would start but as the battery voltage dropped little by little due to the corrosion it was getting insufficient voltage to the components that required a proper amount. Starting the car allowed to components to work correctly an everything was normal. It was while the car wasn’t running that problems arose. Driving long distances allowed the battery to charge enough to stop the perimeter lights to go off. But soon it would come back. Cleaning the terminals and then going for a drive eliminated the problems.