The government isn't telling anyone anything - it's a purely municipal decision
The problem is that charging for street parking is trickier politically than setting rules for construction. Builders will build apartment blocks with not enough parking spaces, people will buy the apartments because they're cheaper, and then complain that the municipality is extorting them by making them pay to park in the street... It's a lot easier to just fix the problem at the source, even if it's not as fair
Suffice it to say adding free parking introduce horrendous incentives, destroys streetscapes (your shopfronts are now parking), is expensive for everyone even if they don't drive, and makes walking, cycling, and taking public transport less viable and less pleasant.
The reason for that is that in ten years' time, you may have moved on and sold your house, and the next tenants will probably own two cars (this being the US), and so will end up parking on the street. If everyone does this, it's a nightmare
Enforcing a number of parking spaces per dwelling is very common even here in France