Reason for 1/2 watt resistors marked as 2 watt resistors
You can see the white casing as a heat sink that provides better heat transport to the surrounding air.
That is possible because it has much higher surface area than the original resistor (from the picture I guess at least factor 5) and it is made of a material with high thermal conductivity.

So that really increases the wattage of the resistor.