Pupils set to perform for King Charles were rehearsing when Keir Starmer stopped to listen.