Transistors have gotten more efficient, but that doesn't mean CPUs' TDPs have decreased. At least for desktop CPUs they've mostly stayed the same or even gone up: the Pentium 4 "PresHot" from 2005 had a system power consumption of 233W whereas the i9-10900k from 2020 has a package power consumption of 254W.