The lender sells the home to recover the money that was paid out to you (as well as fees. Like a reverse mortgage, a home-equity loan lets you convert your home equity into cash. It works the same.
Use the cash out refinance calculator to determine how much equity you can borrow. Use you home equity to get cash out.
Overview of VA home loan guaranty purchase and cash-out home loan benefits