The reason they have not been automated till now is economics. To make a train completely automated you need to make sure that not only will it be able to follow a pre determined path and schedule, but also make decisions when an unforeseen event occurs.