Since Twitter is wrapping all users links with their t.co URL shortener, the content you shared depends on t.co service.
It’s like a censorship, everything is hidden and controlled through t.co links. Maybe you don’t want Twitter to know how many times you clicked on a link? What would happen if this URL shortener won’t work anymore some days? All links you shared and the others users shared would be lost. It’s not good to rely only on a URL shortener, Twitter knows and that’s why they have embedded real URL in tweets HTML code.
By default, this script returns the data-ultimate-url, interesting if a Twitter user has shared a link through another URL shortener like bit.ly, you can decode this link too. If data-ultimate-url is not found, it will search for the data-expanded-url, which returns only the t.co decoded link.