It's simply part of the definition.
If you simply defined "piecewise continuous" to mean that a function has finitely many discontinuities, then a function like f(x)=1/x would satisfy that criterion (whether the function exists at x=0, is actually somewhat irrelevant in this case as we could...