For a long time mechanical engineering was the solution to a lot of technical challenges. Using electronic solutions happens more ofter. Although mechanical engineering will never be replaced by electrical engineering, together they can produce better things.
The automotive industry has shown a lot of what electronics can do. As a driver would hit the brakes in a car without ABS, the car would be uncontrollable. Nowadays, systems like ABS and Brake Control decrease the braking distance of a car. Additional, the car is still controllable.
Home automation, or domotics, has been a profession since the last couple of years and are making buildings more energy efficient.
As there can be mechanical breakdowns or jams, there can be electronic failures. Thing is that the knowledge of electronics is at a stage where risks can be contained.
Also within the concept of electrical engineering things has changed. Where earlier a lot of maths had to be done for analog circuitry, now software engineers write the actual formulas and let the maths be done by a chip. For example in the audio world, DSP (digital sound processing) technology has been a major successor. There is a shift from analog to digital which introduced a new profession: Software Engineering.
The reason why it took so long before electrical engineering revolutionized is the lack of knowledge about it. Along with this the reliability of electric systems were not as good as nowdays. With the products on the current market it becomes easier to develop new products.
The reason that electronic engineering is increasing is the possibility to produce easier and better.
The public knowledge about electronics and the software engineering connected to it is increasing. This makes it easier to build more complex devices. These devices can assist humans in their daily life. Therefore the number of these devices will increase. The only thing that is standing in the way, is the interface between devices and humans. But this is a whole different study.