Grafana v11.0.0: trailing moving average shoots upwards for no reason

I draw a line of 50th percentile of transaction duration data:

Then I add a trailing moving average like this:

image

And the moving average line (Trendline) shoots upwards like crazy:

How come?