On the nature of the magnetocaloric effect of the first-order magnetostructural transition