One book defines the maximal element as
“Let $(P,<)$ be a poset. An element $c\in P$ is called maximal if for all $a\in P$ with $c<a$ we have $a=c$.“
How can one write $a=c$, for a is all the elements of $P$ isn’t it? How can $c$ be equal to all of those different elements?
When the definition say "all $a\in P$ with $c<a$, we have $a=c$", the $a=c$ part is only relevant if the antecedent holds.
That is, if $a$ does not satisfy $a<c$, we are not claiming that it is equal to $c$.
Consider for example the statement "For every prime number $p$ with $p>2$, we have that $p$ is odd". Does it mean that all primes are odd? No.