You can't just look at the cinema box office for this. Disney makes hella money on after market sales (DVD, etc.), and they do so for an extremely long-haul. The films from the Renaissance, Silver Age, Golden Age, etc. all keep making money when they do another release. Additionally, they do a lot of business with tie-in products. It's not that the films are just advertising, but they can afford to splurge a bit on the budgets from time to time because it's going to make it back somehow in the end. Tangled was pricey, but it was a huge success.