What Box ?

When the ecu overheats the sealant melts. If you dont clean up the mess the new unit will appear to have done the same thing.
Engineering decides what consistency of sealant is used in different applications. If its a soft gel like substence it's meant to allow some movement, absorb shock, melt at a certain temperature, whatever.
Dont be shocked to find the same stuff in aftermarket boxes.