* Harry found the diary in a dusty old trunk that he received from his aunt Petunia, who thought it belonged to his late mother.
* The diary itself revealed its true nature by starting to write messages and then revealing itself to be a Horcrux containing a fragment of Voldemort's soul.
So, the diary essentially "showed itself" to Harry.