It was an important win to take for Valencia above all else. Because they were quite close to the relegation field and they needed to find a way to get away from there. Real Madrid didn't have any big target to achieve in the league so I'm not very surprised with this result. But of course one can say that Real Madrid could still have won this match while they were controlling the ball mostly. But having a big percentage of ball possession isn't always enough to win a match in football. This was a solid example for that.
Besides we watched two different halves as well. In the first half despite the ball possession rates Valencia had many more goal attempts and this helped them score. Real Madrid took full control in the match in the second half but it didn't change anything. This wa a horrible match for especially Vinicius Junior and that red card was a bad ending.