For all we know, skeletons in Undertale world could have mass under all those bones. It's just another weird thing on the already-long list that includes such gems as 'monster food turns straight into energy when you eat it, none of that gross digestion stuff'.