Oh, but it will, according to the junction-to-ambient (including a possible heatsink) thermal resistance and the dissipated power.
The 25°C is just a handy reference point for ideal conditions.
For low power stuff, it may be close to the actual operating temperature.
For high power semiconductors, it's important to check the data sheet for derating information, and the absolute maximum rating are sometimes given for Tc rather than Tj.
e.g.
IRF 520, Vishay:
The maximum dissipated power is 60 W, for Tc = 25 °C and R
thJC = 2.5 K/W this gives us a maximum Tj = 25 + 60 x 2.5 = 175 °C as stated in the same max rating table.