Retirement tax questions

I do have one follow-up question to this advice.  What is the purpose of  #12, why is that needed to add the gain/earnings the $1200 made?  I don't really understand why that is needed?

 

thank you