MS bundles this in to help reduce the spread of viruses. Microsoft Security Essentials is a free AV that combines the functions of Defender with active scanning & an AV engine. If you opt to d/l MSE, it will by default, disable Defender, so don't panic if after installation you see Defender disabled.
Microsoft Security Essentials - Microsoft Windows