Calling suicide "selfish", "stupid", or saying "committed suicide" can make people feel shame if they have suicidal thoughts, which can make it harder for them to reach out for help.
"Committed suicide" comes from when suicide was seen as "sinful", and when it was a crime. Instead, saying "took their own life" or "died by suicide" is kinder and more sensitive.