You can earn quite a lot as a Doctor (compared to the other population). The situation was much better about 10 years ago on the real estate market.
The main problem in my opinion regarding Germany is that it becomes really hard to accumulate wealth, you have high taxes, real estate prices are high and the consumer prices are rising. So inheritance plays a really big role.