1. Transporting people is less profitable than transporting goods, so those trains have to wait for the more important ones. They share tracks due to cost and difficulties with planning new routes.
2. Until the 90s there was a person physically using the railroad switch lever. This meant that these almost never malfunctioned, and if they did, someone was there to immediately fix it. Today they are centrally managed and electrical, and one of the biggest reasons for delays.
Now the thing is that there are many areas where the DB could both cut costs and increase reliability, but are blocked by the unions / Betriebsrat. Rails is an area ripe for automation but in my experience at every little nook a union representative will find a way to block it as it might make some employees redundant.