Is that knowingly trading on margin, or just how it works behind the scenes? If the latter, why?
So, anyway, for lots of reasons, things that users think should be instant, aren't. And that's really bad UX, especially for a platform that depends so much on emotional stuff: "deposit $200 bucks and buy 3 shares of X, leaving you with a $30 cash deposit which RH can then earn interest on" is probably how a large amount of RH's balances come into being. That breaks if it's going to be a 1-day gap between someone depositing their money and then buying the shares.
So everyone papers over holes like this with margin.