We say that Power,P is inversely proportional to resistance,R because, P = V^2 / R
but , Power,P is also equal to I^2 * R. In this case,the Power becomes directly proportional to the resistance,R
P = V 2 /R says power is inversely proportional to resistance provided V is constant.
P = I 2 R says power is directly proportional if I is constant.
So, depending on the status of V and I the equations are used.