asset allocation / diversification whys it important to investment programs ?

looking into investing and was wondering what the terms met first of all.. and why they are important in establishing a program.

It is important to keeping a balanced portfolio. If one sector goes down, most likely another sector will go up to balance out your portfolio to having an even income. If you have all your eggs in one basket and that stock crashes, then you lose all your money. Ouch!