Closed accounts

What are the closed accounts on the credit report and what are they used for?