When writing $$\sup_P f(P)$$ you have to specify which set $P$ belongs to. Here, $P$ belongs to the set of all partitions of $[a,b]$.
To relate to what you said, taking $E$ to be the set $$E=\\{\sum_{i=0}^{n_P-1}\lvert f(x_{i+1}) - f(x_i)\rvert : P\mbox{ is a partition of } [a,b]\\}$$ then the supremum written on wikipedia equals $\sup E$.