Palaces are only palaces if they are exceptionally lavish and built with the intention of being a home. So you can't call any old building a palace just because royalty decides to live there for a while; it had to have been built for that purpose. So that's your answer.