Interestingly, in Spain where investments are one of the lowest as per table, trains are fast and arrive on time. Spain by all accounts has the best high-speed train service in the world (one problem is mountains in the north where speeds are much lower...). Why? Maybe difference is that German railways are mostly intended for freight?