I suspect there are many hidden variables and modifiers within the code, seems to me even if 2 drivers have the same values one may consistently be better in Monaco and the other in Monza, if each attribute for a driver has a hidden + or - modifier then it would explain many peculiarities especially if over training a particular attribute has a negative effect. (and we don't of course know whether or how many hidden attributes there are)
I'm thinking for example along the lines of drivers having favourite track types where they're given a slight bonus cos that's the way I'd do it.
I believe Donald Rumsfeld sums it up well with a quote Sir Humphrey Appleby would have been proud of
"There are known knowns. These are things we know that we know.
There are known unknowns. That is to say, there are things that we know we don't know.
But there are also unknown unknowns.
There are things we don't know we don't know."