I think it’s to do with when a star dies and it’s so big it collapses on itself and the gravity is so strong it pulls it all together and forms a black hole.
Not all stars form black holes when they die though.
That’s not a great explanation, sorry I’ll see if I can do better (it’s a while since I’ve done much astrophysics!).
Thanks for your question though!