How does the parable of the sheep and the goats relate to the concept of judgment and accountability?

The parable of the sheep and goats teaches judgment and accountability