Electric plugs, switches, etc. should be made of such materials, which neither allow the heat nor the current to pass through. Also, they should not melt down on heating. Thermosetting plastics possess these properties. Therefore, they are used for the same purpose.