From where does a particle get the energy to tunnel?

When a particle is made to confine more and more to a particular position it breaks the energy barrier to get out because of the uncertainty principle. But, from where does the particle get the energy required to do so? Does its mass get converted into energy?

In that case consider a particle in a potential well equal to $mc^2$ where $m$ is the mass of the particle. Then to pass the energy barrier its whole mass is to be converted into energy so that the uncertainty principle is satisfied. So, a particle loosing all its mass and transforming into energy to get out of the potential well and again transforming into a particle.That's weird and I think it's not the case.

Does it undergo quantum tunneling during the escape process? In that case from where does that instantaneous increase in energy come from?

Note:I'm a high school student and I'm introduced only to basic quantum mechanics( just Bohr model and orbitals) in my school. Maybe the whole thing that I asked here is foolish. Sorry for that in that case.

-
A possible analogy, which is definitely not related to actual QM: suppose you have a particle surrounded with a wire mesh. Most of the time it bounces off the mesh but with some small probability it might move directly thru one of the holes in the mesh. Or, to get closer to QM, imagine the mesh's holes vary slightly in a random way (over time). Now the particle has to happen to meet up with a mesh hole just when it's large enough to allow the particle to pass thru. –  Carl Witthoft Jan 12 at 13:37

The energy does not change. The quantum mechanical solution of the potential problem with a barrier is such that it gives a probability for each specific energy level to go through the barrier .

In this explanation one sees a free particle reaching the barrier, and how the probabilities change, but not the energy:

Thus no extra energy is needed, but a lot of patience :) , because the probabilities are small usually and either one has to study a large number of the same conditions, or be in wait for the phenomenon.

Tunneling has been used to evaluate nuclear decays, for example the Polonium alpha decay lifetime :

-
Then, what determines whether a particle tunnel or not. Just probability? But, then that probability should have a physical meaning or interpretation. –  Rajath Krishna R Jan 12 at 12:46
Yea, just probability. That is why I added the alpha decay in, which is a completely random process on which particle decays. –  anna v Jan 12 at 13:41
Note also that the barrier width can only be "a few" times the de Broglie wavelength of the particle before the barrier becomes to wide to allow tunneling. –  Kyle Kanos Jan 12 at 17:47