Person A said "what was I saying?"
And Person B said "you were saying how much you liked spaghetti"
So you want to know why Person B said "how much you liked spaghetti"?
It seems Person A was talking about spaghetti but for some reason he/she forgot what he/she was talking about.
So all Person B was doing was reminding Person A about what he/she was talking about. Person B wasn't making a statement about her/himself.