Nuclear fuel in the reactor pressure vessel is engaged in a fission chain reaction, which produces heat, heating the water in the primary coolant loop by thermal conduction through the fuel cladding.
The steam generated has other uses besides power generation.