I used to get erections thinking of non-erotic things when I was 13.
When you hit puberty, most people will fantasize about mounting anything they see. Once I was in math class and I got a boner while I was daydreaming about my grandmother (which is not arousing). Other times I got one in the boys shower room even though the thought of sodomy never crossed my mind and I never even washed the darn thing.