People often underestimate the skill of actors. As well as acting ability, they also need to be total chameleons when it comes to accent. Actors not only need to suppress any regional accents of their own, but also assume an astonishing array of other voices, taking into account the regional, class, educational and historical background of their characters.
The accents used in the first season of The Crown are a case in point. There's the regional and class aspect - the high RP of the ruling classes - but also the historical aspect. Accents change with every generation, and the RP of the 1940s and 1950s is very different from the RP of today. Listen, for example, to the vowel sounds in how Claire Foy pronounces words such as 'happy': the 'a' sound is extremely 'tight', like an 'e', and the 'y' at the end is a tense 'i'. Nobody uses that accent any more, but the actors in The Crown had to learn it. This involves intensive training with professional voice coaches, along with the focus of getting 'into character' every time for their roles.
As for the real royals, you can hear the evolving accents by watching old footage. You can find the Queen's first Christmas Day speech from 1958 on Youtube: listen to it and take note of how she says 'happy', in a very high voice, with extremely tight 'e' and 'i' sounds. Now listen her later speeches, sixty years on, and note how the accent has changed. She's still very posh, of course, her voice is lower and the vowels much more relaxed. Then listen to Harry or William, and you'll hear that they sound absolutely 'normal', like any well-educated young man you might meet in the street today. And no, Philip doesn't have any foreign accent. Although born a prince of Greece, his family were Danish/German and he spoke English from a very young age. His accent is the same as the Queen's.