It's not uncommon to get hard during or after a workout, and if you ask both gay and straight guys get boners. Don't worry, so long as your not staring at anyone I particular nobody can really take offence as you're not doing anything wrong, unless you start playing with it or flashing it about, as the saying goes shit happens. You could try having a wank before you go to help prevent it, apparently it does work.