25kHz PWM signal to analog voltage (DC) using low-pass filter: Weird output

I didn't understand your comment on capacitance

While the capacitive reactance of 2000uF at 25Hz is 3.18 ohms the over all load being driven by the arduino is going to be just over 6R. This is way too low to be driven by a logic pin. In other words the input impedance of the filter is way too low.

The absolute value of filter component values are as important as the relative values.