They are two different situations, the first refers to prisoners for their political ideas, the second to politicians imprisoned for crimes committed
If you try to be a pun, as you retruecano makes little sense. Obviously: prisoner and politician can be used as a noun and as an adjective each.