Why some functions $f(x,y)$ can be discontinuous but its partial derivatives still could exist? 
Why some functions  $f(x,y)$ can be discontinuous but its partial
  derivatives still could exist?

I am slightly confused,... the relationship between continuity, limits, partial derivatives and differentation. I don't understand that from the definition very well.
 A: The loose, hand-wavy answer to all of this is that once you move beyond functions of a single variable, the number of possible ways to go wrong explodes.  
Let’s take limits and continuity. For single-variable functions, the limit exists at a point if you get the same value approaching that point from the left or the right. If this value matches the function’s value at that point, it’s continuous as well. With a multivariable function, not only is there an infinite number of directions that all have to agree, but the value you get along any path that approaches the point has to be consistent as well. So, for instance, you might have a function of two variables for which the limit as you approach a point along any straight line is the same, but you get a completely different answer if you follow a parabolic path.  
Differentiation is more of the same in that the linear approximation to the change in the function’s value has to be consistent for all ways that you can approach the point. Partial derivatives are really directional derivatives in the directions of the positive coordinate axes. So, when you compute a function’s partial derivatives, out of all of the infinite possible paths that approach a point you’re only looking at how the function behaves along a specific finite set of lines through the point. That’s not nearly enough to guarantee that the function is continuous or differentiable, since it could be doing something wildly different along all of those other paths that you haven’t examined. A relative of the function I posited in the previous paragraph not only has partial derivatives at the point, but every directional derivative exists there, and yet it’s not even continuous, let alone differentiable.
