I think the major advantage is to reuse a common library for loading and processing images.
PIL is one of these libs, but I don’t know which requirements were used to pick it.
Note however that as of torchvision 0.8 transformations are now supported on tensors and torchvision ships with a native image loading utility. More details can be found in the release notes 48.