I don't know
@TrendTrader007 's situation, but the way I understand it, if your shares are owned on margin, in a margin account, then your brokerage has the right (as part of your margin account agreement), to lend your shares out. It is my understanding that in this particular case, you the share owner receive no compensation. The brokerage 'paid' for that privilege by extending you the ability to purchase shares for less than what they cost.
It gets a bit harder to do the math and understand things between the two extremes - one extreme being that you fully own every share (no outstanding margin loan), and you are fully margined (anything going down a penny will yield a margin call). Any shares that you fully own are not able to be lent out under your margin agreement.
Instead, any shares you fully own you can register with your brokerage's Fully Paid Lending Program (in which you grant your brokerage the right to borrow your Fully Paid shares, and lend them out to others). For completeness, it's important to understand that very few companies are desired by brokerages for their Fully Paid Lending Program. None of the other company shares I own have ever been lent out - only the TSLA shares I own. Think of it as the demand for those companies shares to short is sufficiently low, that the brokerage has an adequate supply of shares from other sources (brokerage owned, margined shares), to be able to loan shares anytime they are requested. I believe the interest rates paid to borrow shares in this case are more on the order of 1% (or less).
In my case, I own my shares in a margin account. However that account is fully funded, so I own all my shares completely, and have them registered with Fidelity's Fully Paid Lending Program. It's this latter bit of paperwork that I believe TrendTrader is referring to.