Do you think these thoughts may be a cry of pain?
Thinking about the thought, what do you think might have been the reason it came? What was it about? Was there something about looking at your hurt, attending to your hurt, that might have brought up some feelings such as wishing someone else was there to tend to your hurt and help your hurt? Suicidal thoughts are ways of saying "I hurt *this* much!"
Thoughts come for a reason. It's okay to be curious abut them.