Alternatively, loans are income today coupled with an expense over some future period.
Including loan proceeds in taxed income (and deducting repayment) is certainly a potential policy choice.
OTOH, treating pledging an asset as security for a loan as a realization event at FMV, making it both taxable if a gain and a basis value update, while taxing capital gains as normal income would also be a way to shutdown the “use secured loans to fund your lifestyle to avoid realizing gains and being taxed” hack.