Can someone please explain exactly what the simulator does that makes the car win a race?

Does it take in the logged data and determine the car needs more front aero download to be faster? Or did...