Although seriously, it sounds like he swears just because he can. It seems to me like you're only getting in trouble because you're swearing like you're announcing that you're just as cool as he is.
So you're lame and because of so, you're getting sent to detention.