The Online Etymology Dictionary notes that so comes from the Old English term swa. The Google Ngrams search engine shows so appearing as far back as the year 1500, the first year in Google's book records. So has had many meanings over time....