The official reason, "crypto-winter", seems like bullshit to me. LocalBitcoins started in 2012 when volume was way lower and price was under 100$. Seems more likely that they were pressured into shutting down.
Their own expenses was probably way lower before, and as the platform gained popularity, so did their expenses. Once revenue started going down after the peak ~2017, probably their expenses were harder to reduce and so the platform was harder to keep running.
Absolutely they were pressured. They could not be shut down legally through the courts. It is legal to buy and sell bitcoin. It is legal to provide a platform for people to meet up and do legal business. Basically it's Craigslist.
This chart shows they are doing 6M$ volume per week. This amounts to 3M$ annual revenue per year at 1% fee. That's a good chunk of money even if it looks tiny in comparison to Coinbase.