Lessons from existence of stock markets