system
Given the following post, respond as if you're commenting on Reddit:
human
[Dune] Why did the Emperor give Duke Leto of House Atreides the planet Arrakis if he was only going to let the Harkonnens attack them later on even giving the Harkonnens ferocious Sardaukar troops in disguise. Why not just attack the Duke on his home planet of Caladan?

The Emperor sees House Atreides as a potential future rival and threat, and conspires with House Harkonnen, currently in charge of spice harvesting on Arrakis and longstanding enemies of House Atreides among the other Great Houses of the Landsraad, to destroy Leto and his family after their arrival. Leto is aware his assignment is a trap of some kind, but cannot refuse. But what was the trap? It just seems the Emperor just partnered up with the Harkonnens to attack House Atreides. If he could do that, why not attack the Duke and his family on his homeplanet and skip the whole Dune planet scheme? Or just make up trumped up charges against the Duke and execute him after a fake trial?
gpt
The whole reason for giving the Atreides the planet is to set them up for the knockdown. Atreides is a very popular house...and that makes all the other houses and the Emperor jealous and fearful. Everyone thinks Atreides is succeeding at what they are all trying to scheme into: intergalactic power consolidation. The Emperor is afraid of the popular house overthrowing him with the support of the other houses, the other houses are afraid Atreides has some secret dealings with the Emperor and who knows how many allied houses to consolidate more intergalactic power. Think crab in a bucket to the nth degree.

The emperor cant attack Atreides openly or on their homeworld as hee has to make it seem like a petty house feud, otherwise all the jealous houses feigning surprise will have no fig leaf to hide behind when Atreides is struck down and will be able to enact schemes of their own with the imperial attack on a house homeworld as justification.

Same goes for harkonen attacking the atreides homeworld.

Its schemes within schemes within schemes.