Lottery system for local public

Why stock market is lottery system for local public.?