Note: the order in which we apply quantifiers does matter.
More generally, let $P(x,y)$ be some property of $x,y$:
$$\exists x: \forall y \ P(x,y) \nLeftrightarrow \forall y, \exists x: P(x,y).$$
e.g. consider the following two statements, for simplicity, to show that this isn't the case:
$S_1: \forall x \in \mathbb{R}, \exists y \in \mathbb{R}:y>x$ (i.e. for every real number $x$, there is some other real number $y$ which is bigger than $x$). This is true.
Now let's swap the order of the quantifiers:
$S_2: \exists y \in \mathbb{R}: \forall x \in \mathbb{R}, y>x$ (i.e. there exists some real number $y$ which is bigger than all real numbers). This is false (as $\mathbb{R}$ is unbounded above).
This example shows that changing the order in which we apply quantifiers affects the statement.
The same idea applies in your case.