that isnt entirely true. you can purchase with unsettled funds, however selling stock you purchased wit unsettled funds is subject to violation of the free ride rule. You can then sell after the settlement date, and there is no problem, even if you sold and bought originally in the same day.
Having a margin account eliminates this, however if you power money from your broker (by on margin) the broker has the right to lend out your shares.