Retirement tax questions

I guess I don't understand the advantage of doing it that way.   If I contributed $8,000 but I'm going to withdraw $30,000 why break it up into pieces?