A loose gas cap triggers an EVAP leak code + check engine light on pretty much every car made since the early 2000s. Now depending on said car, all traction control and ABS might be half-disabled as soon as the CE light turns on. Usually newer cars will disable more systems to bring you back to the dealer.
ex. my current car had an intermittent O2 sensor issue, which would turn the traction control in lazy mode and try to kill me in snow/ice conditions by reenabling itself at the worst possible moment when detecting slippery conditions. My previous car had traction controls completely independent from engine faults.