Bragging Rights

What does the idiom “bragging rights” mean?

Definition: the ability to boast about something

Example: “I finished the exam faster than anyone else! What do I win?” —”Bragging rights”