Past simple for past habits and states
The past simple is used to express habits and states that existed during a period of time in the past. This period can be implied or expressed with a time expression or a clause:
When I was a child, I visited my grandma every weekend. (habit)
When my brother was young, he liked spinach. (state)
Where did you go to primary school? (habit, where the implied period of time is when you went to primary school)