I'm not sure I entirely follow your question but I think you might be asking how a passive device can have 10 dBi (i.e. positive gain)?
An isotropic antenna has 0 dB of gain (unity) in all directions (isotropic is the 'i' in 'dBi').
When we say "10 dBi" of antenna gain (e.g. directivity) we mean that in a particular direction the signal gain is 10 dBi. However, in other directions the signal gain will be much, much lower. So instead of radiating equally in all directions we can "direct" energy in a particular direction to get more gain at the expense of reducing energy radiating in other directions.
Edit: as others have pointed out it seems you were focused on the energy conservation and as the other answer pointed out: 10 dBi only applies in the farfield. Even in a vacuum, free space loss cannot be 0 dB. So for the equation to not violate conservation of energy you must include free space loss at a minimum. So in your link budget we know that free space loss must be at least -10 dB.