Thermal energy is dependent on the mass. If objects have a different mass then they will have a different thermal energies.
YOU can think of energy as the movements of molecules an object. Lets say there is a cup of coffee, boiling. Molecules are moving FAST, awesomely Mass movements of molecules. But there might be a huge iceberg. There is huge more amounts of molecules than the coffee, making it have more thermal energy even if there might more movements of molecules but it does not add up to the billions of molecules count of the iceberg.
Two objects can have the same temperature but different thermal energy due to differences in mass and the number of molecules present. Temperature measures the average motion of molecules, while thermal energy measures the total energy of all molecules. Therefore, a larger object can have more thermal energy despite having the same temperature as a smaller object.
;