From your description it may be acting as a placebo -- the act of putting the pill into your mouth is what tells your subconscious to activate a sleep cycle.
Placebos are actually very effective for improving sleep
Don’t jinx it
Placebos are actually very effective for improving sleep