Retirement tax questions

I contributed all after tax money into the 401k. After a while, the after tax money generated some gains which is pretax money. 

 

The 401(k) plan administrators allowed me to roll over a small portion of the pre-tax money to Roth IRA and I need to pay tax on that portion. I don't know why  they did that. I saw that small portion is specified in box 2a as taxable amount.

 

How can I deal with this case in Turbo Tax ?