It likely has something to do with crystallization of one of the sugar components of the syrup. You could try thoroughly shaking it (although it will likely take a long time to have the crystals reabsorb, likely 20-30 minutes.)
I had this happen one with a bottle of hydrocodone/acetaminophen elixir and it took some doing to get it all reabsorbed.