I don't know anything about Anchor Loans or Aloha Capital, but I think you may be incorrect on a few points here. The discrepancy may be down to differences in state law or just misunderstandings.
First - If Peerstreet buys a note from Aloha, their agreement can be set up so that Aloha still services the debt. There is nothing wrong with a third party servicing debt. It's actually quite common. Sometime investors prefer an originator use a third party to create some separation once the loan closes.
Second - I am not sure what you mean about shorting investors. Can you elaborate? Are you saying they short pay loans that pay off even if the loan was paid in full? That'd certainly be illegal, but I can't imagine how you could even get away with that on a large scale.
Third - There are a handful of states that you need a license to lend commercial loans, but the majority of states it is perfectly legal. And quite common. If that changed I think it'd put a lot of people in a big capital crunch and really disrupt the market.
You are absolutely right about contract law though and I think it's a good point to bring up. Just because another party puts something in a contract does not mean that it is entirely enforceable. There are definitely some shady people out there that might put outrages penalties or provisions in loan documents that try to take advantage of people that don't know better. It just drives home why it's important to have not just any lawyer, but a good lawyer.