We restrict the right to some freedoms, but do we restrict the right of autonomy within the person. You may not be able to do things as you wish, but can you restrict or legislate that away? Nuance might include the reasoning - suicide to 'avoid consequences', or depression (and of course the confluence of multiple reasons and / or benefits).
Somewhat related, though tangential - there are countries that do not punish for prison escapes or attempts. You will be put back in jail if caught, and circumstances might be changed to mitigate risk, but the underlying reason is "a fundamental human desire is to be free, and we cannot (additionally) punish for acting upon that desire".