The (NPC) pirates aren't there for the player. They are there for the NPC miners. The player is only one ship among many to them.If there are more players, then it makes sense for there to be more pirates, because there is more possibility of goods to steal. What doesn't make sense is lots of pirates when there is only one player in the area, which happens all the time when entering your own RES.