DB Netz owns the vast majority of german rail and therefore prioritizes what makes them the most money. Historically that's been carrying people due to all the government and company subsidies they get for supporting commuters and students. During COVID times the rail freight increased dramatically because the personen trains were offline. I suspect that will have generated some inertia towards freight, but it will take years to see and only if the right folks at DB crunch the right numbers.
On the american side, I've sat for 20 or 30 minutes regularly (up to an hour on the worst days) while our commuter train had to wait for the rail owner's freight train to roll through. And that's a regularly scheduled commuter!!
Germans, in my experience, tend to be pretty rational folks. As much as the public likes to ream the decision makers for poor choices while armed with the perfect clarity of hindsight, my guess is they've gotten to this point because all the other choices seemed worse at the time they considered them.
However, other comments suggest that freight needs _slow_ speed and must avoid tunnels. Maybe that's the reason?
[0] https://en.wikipedia.org/wiki/NRLA
[1] https://en.wikipedia.org/wiki/Karlsruhe%E2%80%93Basel_high-s...
[·] https://goo.gl/maps/gnrqGEdz3H7vz8V99
Context:
https://en.wikipedia.org/wiki/List_of_countries_by_rail_usag...
The mix of road and rail for more general freight has been heavily in favour of road for a long time, and only getting worse as Internet shopping, etc, increases the role of last-mile home delivery.