Those things are doubtless unpleasant, or at least undesired, but if the unpleasantness is merely a side effect and the intended prevention of crimes happens independently of the unpleasantness then they are not punishments in the sense that’s relevant here.
Of course, if someone wants to do X and a society’s enforcement mechanisms—whatever they are—stops them doing X, or does something to make doing X unattractive to them despite their wanting to do it, then that’s going to be unpleasant for them. In that sense, crime implies punishment. But it’s a very weak sense and not, I think, the one that’s relevant to this discussion.
Those things are doubtless unpleasant, or at least undesired, but if the unpleasantness is merely a side effect and the intended prevention of crimes happens independently of the unpleasantness then they are not punishments in the sense that’s relevant here.
Of course, if someone wants to do X and a society’s enforcement mechanisms—whatever they are—stops them doing X, or does something to make doing X unattractive to them despite their wanting to do it, then that’s going to be unpleasant for them. In that sense, crime implies punishment. But it’s a very weak sense and not, I think, the one that’s relevant to this discussion.