The spread is pay for taking risk
A market maker buys when clients sell and sells when they buy, then sits on the position until offsetting flow turns up. The bid-offer is the pay for warehousing that risk. In corporate bonds most client business now arrives as electronic requests-for-quote: the client asks a handful of dealers at once, trades with the best price, and the winner is usually told the cover — the second-best price.