Isn't it because of the halting problem? Just like you can't ask an algorithm to determine if a routine will reach its end (because the algorithm itself may run forever), you can't have an algorithm tell if a piece of code is bug-free (because the algorithm itself may contain bugs).
So humans end up taking the final decisions and remain the bottleneck.