Parents must take care of the child until the child reaches adulthood. Otherwise the child may go astray. Moreover, a underage child does not know which is the right way for him. He has to be taught and if there are any mistakes it is the responsibility of the parents to convey those mistakes. Of course, they should be maintained according to their age. If children are interested in gambling, they should be made aware from the beginning that it is not a way to make money. This is risky work. When a gambler can get an idea about risk and investment from his family, he can definitely make better decisions about gambling matters. That is why family education is of course very important. It may not work directly but may be a good solution for indirect damage.
The possibility is like that, immature children they tend to be easily influenced by things that look fun, especially with gambling where gambling is a game. And it's true what you said that they don't know and can't determine which things are right and wrong, they will do unexpected things even by seeing other people they can imitate them. For children of their age who are not old enough, of course they are not or not the time to think about making money, because with their young age they are in the play phase. It's a big problem if they are already gambling when they are not old enough, in my opinion they will be addicted and may continue for a long time into their future.
I agree with you about the education that must be done by parents. And indeed education is not only in school, of course in the outside world they can also take lessons. By educating them properly it can help them in reaching a good future because of course if they are addicted to gambling it will destroy them themselves and can reach others.