Most people in Germany don’t buy the apartments they live in, because renting in Germany gives you more or less the same rights as owning a leasehold flat in the UK. If you really want to buy a flat, tax-wise it is more convenient to rent it out and rent another one to live in.
In many cities there are rent control mechanisms that make renting extremely cheaper than buying.