A smoke detector doesn't need that much power, so efficiency of the power supply is less of a concern. You have to find a useful compromise between efficiency and use of materials. Those additional components for higher efficiency need to be produced which uses resources and energy.
Although 15W standby for a garage opener seems excessive.