When you say something like we don't know where it comes from implies that you believe it is a physical phenomenon or event. It isn't. The singularity is merely the point (in mathematics) when Friedmann's solutions to Einstein's field equations yields infinite values.
So it literally has nothing to do with the FLoT and the SLoT.
Would you like to learn the role that the FLoT and the SLoT play in this discussion?
A black hole is a singularity but it is very real and has a real effect on the universe. The black hole had a beginning but it existed as normal matter before it became a black hole.
Yes, I would you like to learn the role that the FLoT and the SLoT you believe play in this discussion.
Yes, the black hole is a real stellar structure and yes, it has a gravitational effect on other objects in the universe. The singularity of a black hole is the point on the event horizon of the black hole where the mathematics (which are based upon Einstein's general theory of relativity) yield infinite values. It's the point where the equations break down so to speak. That's it. Yes, the black hole had a beginning so to speak when the star collapsed but all the matter contained in the black hole was created when the universe was created. In fact, all matter and energy in the universe was created when the universe was created ~14 billion years ago.
The SLoT tells us that the universe has not existed forever. There are several different ways to look at entropy. So it can be very confusing but the best way to look at entropy in the context of this discussion is that for every matter to energy or energy to matter conversion there will be a loss of usable energy (heat) to the system. This cannot be avoided and is the reason there will never be a perpetual motion machine. At least not without supplying energy from the outside, but I digress. The upstart of this is that as time approaches infinity all objects will equilibrate. This we do not see so we know the universe has not existed forever (i.e. infinite time). I should probably point out that just because usable energy was lost to the system that does not mean the FLoT was violated. It just means that matter/energy are no longer usable to do work.
Which then leads us to the problem of the FLoT. If matter and energy has not existed forever and matter and energy cannot be created or destroyed, how did it get here and why isn't everything equilibrated? The answer to that is that it is possible for matter to have a beginning or be created but only under a certain situation. In a closed universe the gravitational energy which is always negative exactly compensates the positive energy of matter. So the energy of a closed universe is always zero. So nothing prevents this universe from being spontaneously created. Because the net energy is always zero. The positive energy of matter is balanced by the negative energy of the gravity of that matter which is the space time curvature of that matter. There is no conservation law that prevents the formation of such a universe. In quantum mechanics if something is not forbidden by conservation laws, then it necessarily happens with some non-zero probability. So a closed universe can spontaneously appear - through the laws of quantum mechanics - out of nothing. And in fact there is an elegant mathematical description which describes this process and shows that a tiny closed universe having very high energy can spontaneously pop into existence and immediately start to expand and cool. In this description, the same laws that describe the evolution of the universe also describe the appearance of the universe which means that the laws were in place before the universe itself.