Registration in Europe follows your normal residence, not where you own property. According to Your Europe, the EU's official information portal, your normal residence is the place where you usually live, work or have family, for more than 185 days in a calendar year. If you do not work, it is the place of your personal ties.
Most countries require residency to register a car in your own name. Buying a holiday flat in Spain or a house in Italy does not change that on its own. That is why many second-home owners find they cannot simply buy and register a car locally.