Most people who self harm don't do it for attention. But even if that is the reason, that doesn't mean that the distress isn't serious or valid. If someone is in such dire need of attention that they resort to doing physical harm to their body, that's a serious problem. That's not something that should be ridiculed or disregarded.