Remote performs different operations on same button

I notice that with my silver remote, when I am playing in xbmc, when I press the up button, sometimes it skips forward and sometimes it turns the volume up. Why is this?