Exchanges, card-payment providers inside wallets and crypto ATMs are all on-ramps. Off-ramps send money back to your bank account or card.
Fees differ a lot: buying with a card inside a wallet can cost several percent, while a bank transfer to an exchange is often much cheaper.