Getting attacked happens outside of the player's turn, so, without diving into 5E parlance too deep, let's call it a "reaction".
This means that Fighting Back can allow for 2 attacks in quick succession (You get attacked > Fight back, take damage, deal damage back > Your turn now, you can attack back)