The numbers average tends to 5000. Like when you throw a coin many times... you will probably get half heads and half tails. In this dice game you will probably get half numbers over 5000 and half numbers below 5000. So, if the average is over 5000 the bot will bet LO (we will expect numbers average to tend to 5000), and if the average is below 5000 the bot will bet HI.
You can see how this algorithm work in this video:
https://lbry.tv/@freebitcoinerplus:d/bet-smart-in-freebitcoin:aIt's not exactly rocket science that about half of your rolls will be higher than 5000 and half will be lower. Switching from high to low depending on how many times your results have been on a certain side is a lousy strategy especially when coupled with martingale, which is the strategy the bot was using after 4 losses. With a balance as low as you had in the video I can't see this working out for very long.