A.I. in racing games is a royal scam.
Real life racing is about being perfect. Every second you lose is a second you can't get back. It's not about being fast but about not being slow.
For a racing game to be engaging the A.I. can't really be trying to beat you, otherwise you'd be going through laps you couldn't win and it wouldn't feel meaningful.