Yeah but at least Federation penal terms are short.
Kassidy got less than a year for smuggling for a terrorist organization
Garak got six months for attempted genocide.
Paris, who was an active terrorist in the Kim Alternate Reality where he managed to keep a girlfriend, was out within a year.
The Federation is just nice.