Why is it called WeightedRandomSampler if shuffle is False

The WeightedRandomSampler will use its weights to randomly sample from your dataset, so shuffling won’t do anything.
Also, have a look at this topic for more discussion.