I would presume because we are as one man in Adam, just as we are as one man in Christ. We are born in sin through Adam and reborn in grace through Christ. Why is this God's plan? I cannot completely answer that question - but I can refer you to something in the human world that may provide an analogous idea:
Why does a parent punish their child?
Regards