I haven't played in a long while, but I think what you're asking about is the friendship points? the heart fills up a bit each time, and then when it completely fills, your overall level bar goes up a bit, right? the numbers are how much you're increasing the friendship with that specific animal
Visit my NL dream towns!
Angie from Maplerow, Ranae from Wayfield and Olive from Yorkwood