Definition of measurable function: If $X$ is measurable space, $Y$ is topological space, then $f:X\to Y$ is measurable provided that $f^{-1}(V)$ is measurable set in $X$ for every open set $V$ in $Y$. Definition of Borel measurable function: If $f:X\to Y$ is continuous mapping of $X$, where $Y$ is any topological space, $ (X,\mathfrak B)$ is measurable space and $f^{-1}(V)\in\mathfrak B$ for every open set $V$ in $Y$, then $f$ is Borel measurable function.
Both functions are mapping from measurable space to topological space what's the difference between the two definition?