There are a few conceptual issues in your question.
I went on an computed its energy ( kinetic + potential) and it was constant. Why was it constant?
This way of putting it creates or betrays some conceptual confusion. The ability to compute the potential energy already presupposes knowledge that potential energy is well-defined for this situation. But knowing that the force admits a well defined notion of potential energy is identical to knowing that kinetic plus potential energy is constant. That's basically just the definition of potential energy, it's whatever function of position makes the total energy constant.
In other words, to put it briefly, having a formula for the potential energy presupposes that the total energy is constant.
It could only be constant if the force producing the torque was conservative
Not necessarily. It's theoretically possible that the force is really weird, for example depending not just on the position but also on time, but it sort of "conspires" to produce a nice torque.
but how can I see from the equation above that the force is conservative?
Because of the above, a more correct way of putting this question would be: how can I see that for this situation we can define a notion of potential energy such that the total energy is conserved? Which is equivalent to asking: how can I see that in this situation the kinetic energy only depends on the position (angle)?
The simplest way to see this I think is from the fact that the situation is mathematically analogous to the spring. Mathematically the situation looks identical to that of the spring if we replace the angular quantities (angle, torque, angular acceleration, moment of inertia) with the corresponding linear quantities (position, force, acceleration, mass). And we know that we can easily define a notion of potential energy for the spring, such that the total energy is constant, so we do exactly the same thing with the mathematically identical current situation.