Why is soft iron preferred for making the core of an electromagnet?

Soft iron is used because it has high magnetic permeability, can be easily magnetized, and loses its magnetism quickly when the current is switched off.