So in the sentence When I was a child, I bought a lot of sweets it seems to me that it is incorrect to use bought for repeated action or habit, because it seems like a single action. I know that the given sentence talks about a past habit. - - It expresses many completed actions, actually: a repeated action.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.