When I didn’t, I got bored, and I picked up books. I remember reading books on history, biology, psychology, electronics, programming, etc. and learning from them, often just by flipping pages and reading passages that looked interesting. In fairness, even nowadays, it’s not uncommon for me to have a dozen Wikipedia tabs opened about random stuff that piqued my interest.
Nowadays I can’t get bored anymore. My phone is rarely out of arms reach and I own every steam game I ever wanted and a computer that can handle them.
Recently, I recall trying to work on a side project when I got stuck on a design aspect. My power went out later and with all my devices dead and I remember being bored to death, pacing around the apartment when the solution came to me.