Inactive Tutor answered 07/17/19
The masses are not equal - the black hole is less (initially). When a large star reaches the end of its life, it ejects its outer layers in a supernova explosion. The remaining core collapses, as you say, into a singular point of, theoretically, infinite density creating a gravity well from which nothing can escape, not even a ray of light -hence, a black hole. I said "initially" because material such as gas, dust, and even entire stars that get too close to the black hole (the point of no return is the event horizon) will be "eaten" by it, increasing its mass.
Inactive Tutor
Okay, for some reason that article actually states that r = 2GM/c^2.07/17/19