He found your diary, and the things you said about him. In a good way.. You had a crush on him, you pretending to hate him while he visibly knew somenthing was up. You had been writing some 'stuff' that you wanna do with him. Maybe like roleplays... He decided to make your diary true.