Humans have only two eyes and terrible reaction times. They also get distracted easily and tend to act emotionally often. There is little data to show that computers are better drivers, because currently they aren't, but they lack human weaknesses and are safer than humans in many other situations (planes, trains...).