Why is UE5.1 creating a HoloLens folder, even though I do not have HoloLens installed?

Delete the Platforms/HoloLens folder from your Engine source, then rebuild Engine and it will stop doing that.