At least in Munich (big city btw) a lot of basement parking exist due to laws were you need to build this space when having a flat.
In my area with a lot of 4 story buildings every one of them has one.
And yes it's not just the laws it's often also old people being against it like in my case. What helped were laws.