You think the trade-in is low? The dealer's goal is to get your truck for as little as possible so they can flip it for max profit. It's a three year old vehicle mostly the same as a new one, but you have 30K miles. You were looking at an Explorer...maybe you are trying to get out of the Raptor for whatever reason they don't know so they tossed you a number.
It is low. Dealers like to sell Raptors and other Ford Performance models as "rare" and "hard to get" to justify MSRP or higher to the buyer. Then, when you come back and discuss trade-in, they tell you they vehicles are readily available run of the mill jalopies and you're lucky to get what they offer because they are just such nice people trying to help out humanity with their benevolence.
Let's not even stray too far into analyzing MSRP, Invoice, hold-back, spiffs and the like.
Dealers want it both ways, so buyers can, too.