My husband can do that, and honestly I think it’s because he doesn’t sleep deeply enough, and gets up too early. So exhaustion works.
I fall asleep in a reasonable amount of time (satisfied with it) and exercise is the main thing I can tell helps me. Next most important I wait until I am actually sleepy before trying to sleep. Smaller factors but still helpful - progesterone (post menopause) before bed, putting down the phone an hour before bed, and a routine - I take a shower & do skincare.