According to excerpts from his memoir, King Charles expressed that while Meghan Markle was welcome at Balmoral, he didn't want her there. He gave reasons that Prince Harry found disrespectful and nonsensical. Harry stood up for Meghan, saying, 'Don't ever talk about my wife like that.'
King Charles apologized, explaining that he simply preferred having fewer people around, citing that other wives like Kate Middleton didn't attend either.
However, it should be noted that following these revelations, some experts have speculated on the real motive behind King Charles's decision. They believe that he prevented Kate Middleton from attending as a way to send a message to Meghan Markle. According to reports, the monarch told Catherine not to come, implying that it wasn't appropriate for wives to attend.
Surprisingly, a report by The Daily Mail suggests that Harry pleaded with Meghan to accompany him to Scotland, especially as the Queen's health was deteriorating. However, King Charles insisted that the Queen should only be surrounded by her children and grandchildren during that time. He indirectly conveyed that Meghan was not welcome, but he couldn't explicitly say so to Harry. Consequently, he personally intervened and asked Catherine to stay to make it more palatable to Meghan.