Some sources define the formula like this:
$$ \forall w_1,\ldots,w_n \, \forall A \, \exists B \, \forall x \, ( x \in B \Leftrightarrow [ x \in A \wedge \varphi(x, w_1, \ldots, w_n , A) ] ) $$
Why are all the w* arguments necessary? My logic tells me that this is equivalent:
$$ \forall A \, \exists B \, \forall x \, ( x \in B \Leftrightarrow [ x \in A \wedge \varphi(x) ] ) $$
EDIT: I'll clarify what I'm asking.
If we have a formula of 2 variables, then for a given value of one of them we can always express it as a formula of 1 variable.
So in the first schema we have one instance for the formula $$ \varphi(x, z) = \exists{u}(x \in u \wedge u \in z) $$ and this allows us to construct certain sets. The same sets can be constructed with the second schema if we have one instance for each of the formulas $$ \varphi_z(x) = \exists{u}(x \in u \wedge u \in z) $$ there are as many formulas as there are values of z.
So each set defined using the first schema can be defined using only one-variable formulas. Then we don't need the more complex definition. Am I wrong?
The necessity of the universal quantifiers is an artifact of the fact that in the classical formulations of logic the emphasis falls on propositions that could have truth values assigned to them, and therefore these propositions are necessarily represented by formulas with no free variables. In this set-up, axioms, theorems, etc. are all necessarily propositions, hence represented by formulas with no free variables. Hence, to formulate the axioms in the axiom schema as propositions, you need the universal quantifiers.
In less classical approaches (ones concerned more with the proof calculus like type theory, or category theory), the emphasis falls on hypothetical assertions that something is true. When formulating classical logic, such an assertion may be denoted by $\phi\vdash_{\vec x}\psi$, for example, where $\phi$ and $\psi$ are arbitrary formulas, and $\vec x$ is a list containing all the free variables occurring in $\phi$ and $\psi$. This assertion is to be read as: in the context that the symbols in list $\vec x$ are elements of the universe so that $\phi$ is satisfied, $\psi$ is also satisfied.
This formulation is unnecessary (though I find it convenient) for classical logic, since the assertion $\phi\vdash_{\vec x}\psi$ is, by the inference rule of implication equivalent to $\vdash_{\vec x}\phi\rightarrow\psi$ (in the context $\vec x$, the formula $\phi$ implies $\psi$ is satisfied), which is equivalent from the definition of the universal quantifierto $\vdash\forall\vec x(\phi\rightarrow\psi)$ (where $\forall\vec x$ is an abbreviation for $\forall x_1\forall x_2\forall\dots\forall x_n$ if $\vec x=[x_1,\dots,x_n]$). This assertion says that in the empty context, and with no hypotheses, the (free variable free) formula $\forall\vec x(\phi\rightarrow\psi)$ is satisfied.
(Note, however, that for non-classical logics, or fragments of classical logic for which we are granted only restricted access to quantifiers and connectives, the above equivalence may simply not be available, hence this alternative formulation).
So in particular, in this alterative formulation of classical logic, the assertion $$\vdash_{\vec w}\forall A \, \exists B \, \forall x \, ( x \in B \leftrightarrow [ x \in A \wedge \varphi] )$$ can be taken as an axiom, and is by definition of $\forall$ equivalent to the assertion $$\vdash\forall\vec w(\forall A \, \exists B \, \forall x \, ( x \in B \leftrightarrow [ x \in A \wedge \varphi] $$
Notice that we are still keeping track of the free variables. As far as I understand, you can't not keep track of the free variables, and part of the non-classical approach is that the tracking is built in (since if you want to deal with multi-sorted logic or type theory, you have to keep track not just of which symbols are variables, but also of what sort or types those variables are).
To answer the clarified question, it is simply not true in general that any two-variable formula can be replaced by an infinite family of single-variable formulas. The reason is that elements of the domain are simply not part of the alphabet over which the formulas are defined as strings of symbols. In particular for set theory, formulas are strings of symbols made out of variables ($x,y,z,\dots$), the logical connectives ($\wedge,\vee,\neg,\rightarrow$), the two quantifiers ($\exists,\forall$), parentheses ($(,)$), the equality sign ($=$), and the non-logical relation symbol $\in$.
Notice that not even the empty set, which we informally denote as $\{\}$, occurs as an expression in the above symbols. Rather, if we have a formula $\phi(u)$, and we want to instantiate it with $\{\}$, what we obtain is $\phi_{\{\}}\equiv\left(\forall x\neg(x\in u)\right)\wedge\phi(u)$. Consequently, the only formulas $\phi_z$ for $z$ an element of the domain are those which are definable, i.e. ones which are defined by the derivability (from the axioms) of the truth of a formula $\exists z\left(x\in z\leftrightarrow\phi(x)\right)$ is true where $\phi$ uses only the symbols defined above.
However, since there are countably many formulas, and uncountably many sets (this is a metatheoretical result), replacing $\phi(x,z)$ with $\phi_z(x)$, which you can only do for definable $z$, does not result in the same axiom schema: it results in the weaker schema that concerns only definable sets.