Most planes are not operated by pilots most of the time. Computers do that.
They can do it better, with fewer errors and most of these computer programs are actually very simple! The core code can be developed by a team of only five people within a few months. (The optimization of the code is what takes a lot more resources!)
It’s a pretty amazing tool that we’ve got… those computers.