Why
There are some scientific theories that explain it as a miss-timing of neural firing. In this case your brain would receive a signal and then the same signal almost instantly right after it which would cause you to think that the situation has happened before (which it has according to your brain a few microseconds before) and produce a sense of familiarity. The theories hypothesize that delayed signals coming from say one of your eyes or one of your ears could cause the miss-timing which would produce deja-vu.
As for me i am not sure where it comes from. I experience it occasionally and it is probably one of the creepiest/weirdest feelings. I