When you take a dookie in a particularly cold environment and the fecal matter freezes on the way out of your rectal cavity, causing you to have a sizeable brown stick protruding from your butt, ergo, a butt boner.
I took a dump in a public restroom in an ice rink and i ended up getting a butt boner