Even if trades settled at T+0 (overnight) there are still rules against good faith and free riding violations in addition to liquidation issues.
The reasons are a combination of human factors. Technologically it is possible for atomic transactions to be completed far earlier, but commerce is a web of interactions between mostly real humans.