Most disposable coffee cups (the kind you'd find in the Starbucks of the world) have a plastic lining (polyethylene) that's responsible for the cup not devolving into a soggy mess with hot liquids.
Although it appears that replacing the plastic with wax might make it more recyclable/compostable.