Maybe this answer of mine is not rigorous enough but I will give it a try because it gives some kind of alternative view on questions of this sort so I will add it maybe just to have a variety of views on the same question.
Suppose that we view $\sum_{i=1}^{n}x_iy_i$ as a function of $2n$ variables $x_1,...,x_n,y_1,...,y_n$. Then, in the same spirit, the sum $\sum_{i=1}^{n}x_i$ could be viewed as the function of $n$ variables $x_1,...x_n$. The sum $\sum_{i=1}^{n} {x_i}^2$ as a function of also the $n$ variables $x_1,...,x_n$ and sum $\sum_{i=1}^{n} y_i$ as a function of $n$ variables $y_1,...y_n$.
Let us write now $a(x_1,...x_n,y_1,...y_n)=\sum_{i=1}^{n}x_iy_i$ and $b(x_1,...x_n)=\sum_{i=1}^{n}x_i$ and $c(x_1,...x_n)=\sum_{i=1}^{n} {x_i}^2$ and $d(y_1,...y_n)=\sum_{i=1}^{n} y_i$.
Now, if we suppose that your equality is true then we would have
$a(x_1,...x_n,y_1,...y_n)=d(y_1,...y_n) \dfrac {c(x_1,...x_n)}{b(x_1,...x_n)}$
So we would have that the function of $2n$ variables is equal to the product of two functions, one that depends on the first $n$ variables and the second that depends on the remaining $n$ variables, and, intuitively, this will, I guess, happen rarely, and in this case it is only always true when $n=1$.