During puberty, you can just get the random boners too. Not linked to any sort of sexual tension or activity, just your dick letting you know it still works.

Not great timing for me, happened before I gave a presentation. 