A prisoner’s dilemma doesn’t require actual prisoners; it was the first example of this type of problem, which is why the name is used for all sorts of problems with the same characteristics; namely, that there is some optimal outcome for everyone that could be reached if everyone chose a particular decision, but their is always an individual incentive to ‘defect’ and choose the other option.