There was a quote I read "Its bad to kill, but its not bad to die" -forgot the source
There are different factors for why an individual considers suicide, and we can't easily judge them especially if we don't understand how heavy their suffering is while living.
Suicide should not and never be the first solution to any problem but I'm pretty sure a person considers so many options before resorting to suicide to end their suffering.