Why is US Pulling Out of Syria After it Declared to Pull Out of Afghanistan?

What made President Trump to pull out of Syria? In order to answer that, we will need to look at the history of different conflicts where US was fighting War against Terror. We will also need to understand the financial repercussions that all these Military policing had on the US economy.