Yes. The goal is to reduce debt.
Even if you can pay cash, unless you have a huge cushion this could make a lot of sense (taking your savings to 0 is worse than taking your savings to n months of cost of living, including the loan payments).
I am lucky enough to be a cash buyer but I can still see the logic of using debt in this way.
A municipality can take on debt for a capital expenditure on a bridge or something that might reasonably be dismantled or replaced around the time the bond is paid off, for the same reason.
I would not consider either case to be irresponsible or economically irrational in principle. Especially as humans have finite life spans.
but to the point of bonds, a lot of bond measures are not for net economic benefit, but rather political gain (school funding bonds, for example, tend to fail to improve educational outcomes despite the political rhetoric).
example one: I have just been offered a good job that requires a car for commuting. I have no car and negligible other assets. it is rational to take out a loan for a reasonably priced car as long as I can comfortably make the payments on my new wages. if I later lose my job but am not upside-down on the loan, I am still better off than I started.
example two: I make $200k and have $500k in assets and I want to buy a $20k car. I could easily afford to buy the car outright by selling some assets, but then I would have to pay capital gains and forgo future appreciation. if the expected appreciation + capital gains tax on those assets is significantly higher than the loan interest over the full term, it is rational to finance the vehicle.