In CTF games if a bot captures the enemy flag and runs with it towards their own flag to score, they stop when they meet enemies and sit there to fight with them. Normally, the bot should run towards their own base with the enemy flag and only shoot other bots on the way. If the bot camps there with the flag behaving like in Deathmatch when encountering enemies, they have the highest chances to get fragged and never take the flag out of there.
Tested on an easy bot difficulty though that shouldn't normally affect this. This may also be an issue with other gametypes where bots have to carry objectives from one point to another.