It does make some sense, yea. The draconic thing is taxing you on a fictitious sale. I wouldn't have a problem with it if it was delayed until you actually sell the shares. There are actually ways to delay it, but they require a collateral.
For example if you can reasonably prove that it is a temporary absence up to 7 years when moving outside the EU, you don't have to pay the exit tax, but need to have collateral.
If you move inside the EU, the exit tax actually clashes with the EU's free movement directive and I think there are pending court cases for this up to high levels.
So if you move within the EU, you can delay indefinitely without interest, but they will still require a collateral. And if you want to leave Germany, you'll usually also want to leave the EU for the same reasons...
Switzerland is an option because due to various bilateral agreements, it is treated similarly as other EU countries.
Its funny that you mention this Canadian departure tax on stock holdings. Because just a few weeks ago the German government actually enhanced the exit tax and it now also applies if you own more than 1% OR 500k€ in a _single_ investment fund.
Supposedly this is to close loopholes around creating family-owned investment funds to get around the exit tax.
But as we all know, once a new tax is there, it will never go away. Easy enough to lower the limit or apply it to all holdings in the future.