On the other hand, for the rest of the board, the PCB can easily get away with 4 layers on standard FR4 which is cheap to fabricate.
Using these low profile transformers is getting common, especially if you can't afford the height of a standard transformer on just one side of the PCB.
You should look into the magical stuff that powers small DC to DC power supplies: transformers entirely made of PCB, tight integration of the components inside the PCB itself sometimes. It's quite amazing really (and this is 5 years old, so imagine the progress made since):