An AFK bot will basically make sure you don't idle out from game rooms, meaning you can leave it on and go do something else wile still getting the exp/gp from the game.
Some bots will just keep you ingame, other bots will also find a new room automatically and join once it's finished.