remember, someone wrote the emissions defeatos, AND maintained the code for seven years until now.
The code that detected whether the vehicle was on the road or being tested is what is at issue here. It was a software engineer/manager that implemented it.