Some confusion about Rebalancing

I have read the shard-rebalancing-vs-shard-allocation and confused about "Rebalancing is about taking assigned shard copies ".Is es-rebalance not related to primary shard? @DavidTurner
look forward to receiving your reply