The main reason they most likely created this law is because they didn't want to be over controlling alongside Britain and how they ruled. They most likely wanted to give freedom to promote the idea of a free country and free from Britain.
(Brokers tried to sell stocks, but no one wanted to buy them.) Many people scrambled to buy stocks on margin. People wanted to buy stocks, but there were none left to buy.