Shame is wanting somebody to feel bad/ making somebody feel bad for their actions when it was not something they did to anyone, but simply doing something of their own expression or self care or choice or own wellbeing or own best effort.
Accountability is when a person who did an action(including words) toward another being directly negatively impacts another being or the environment of other beings, has to admit to willingly doing that action. You may hope they feel shame for their actions but the important part is they acknowledge they did it.