How can they bothe have similar logic?
Gambling has house edge and in trading exchanges do not. Both, use different logic, gambling platfor control the outcome and exchange depends on the community who are controlling the outcome of a trade.
They both are completely different entities. Day trading is part of trading which is done on an exchange and exchanges depend on the community of traders. The community decides how a particular asset will perform, you need different set of skills ans logic for that.
Correct me if Im wrong, but there are different kinds of gambling, and yes there are those gambling games like dice and other games that uses an algorithm which usually set on the houses' edge. But, gambling like sports betting does not have an algorithm that can be set in the houses' favor. Sports gambling enables your knowledge and analysis to narrow down the risk of lossing. Same as day trading, you need to set specific strategies and market analysis for you to be able to make a winning trade.