AFAIK it mainly helps stimulate blood flow, but also maintains & protects muscle...NBA players get a lot of whack on the arm, and obviously they put a lot of pressure on their elbows/forearms/wrists.
I use compression shorts and socks for my trail running and I honestly can tell the difference when I'm wearing them.