The ~たり~たりする structure is used to list examples of actions or states, often to describe doing various things, repeating actions, or alternating between states. It is used to express variety, or a sequence of events without emphasizing strict order.
Listing examples of actions: Indicates that the speaker did various actions (among others). The list is inexhaustive, and there may be other actions that were left out.
Alternating or repeated actions: Describes actions or states that occur alternately or repeatedly.