Your "tempo" is the result of SEC_TO_TIME() which can be literal OR numerical based on your input.
The doc says
mysql> SELECT SEC_TO_TIME(2378);
-> '00:39:38'
mysql> SELECT SEC_TO_TIME(2378) + 0;
-> 3938
Your are most likely falling under the second category