It is said that Draupadi did lots of Tapasya of Lord Shiva. Lord Shiva gets pleased by her and ask for a boon. She said she wants a husband who is intelligent, good looking, powerful, honest and warrior. So Shiva blessed her with 5 husbands, each of them with the same quality which she demanded.