Red and blue are the extremes of colours we can see, and because of the change in wave length they focus at different lengths in our eye. So to focus on either colour your eye has to adjust its focal length, which gives the 3d effect. The perspective probably adds to it.
It's called chromostereopsis - http://en.wikipedia.org/wiki/Chromostereopsis