TLDR: it's a custom attribute which you define.
self
= class instance
bot
= attribute that's usually assigned to the bot instance given in an extension's setup
function.
Basically:
class MyCog(Cog):
# this function is called when we do MyCog()