Are you referring to the wires in between the motor and the gear housing? If so, that is just how The wiper motor assemblies were manufactured. I know it seems to look like a DIY repair, but it is not.
If you are referring to something else, I think you will have to show us another picture.
As far as hooking it to 12 V, doesn’t the car have a wiper switch in it?