score:10
The old naval term 'hulk' is applied to vessels that are no longer in sea service but still perform some support role in port. So in the case of a "battery charging hulk", it's used to provide additional battery charging facilities for the other diesel-electric submarines. In most cases, hulks are stripped of any items that are not essential to their new role and are not, therefore, sea-worthy.
In a diesel-electric submarine, the batteries are used to power the ship while it's submerged. These are usually charged by the diesel engines when it's on the surface. However, there may be circumstances where the submarine is unable to fully charge these batteries in the normal course of its activities when returning to port and it's unable/undesirable to run its own diesel engines to recharge them. So the hulk uses its own batteries to re-charge the Romeo-class submarines.
I would think it's unlikely that there were any purpose-built vessels of this nature. If you were intending to manufacture a separate facility to do this, it would make more sense just to install the diesel generators and the batteries in a building on land - it would have more room, be easier to maintain, easier to cool and cheaper to build. The only reason for going along the hulk route is that you extend the life of some equipment that you already have (or, in this case, are able to purchase cheaply).
According to the wikipedia entry for the Whiskey-class, Cuba also obtained a vessel to serve as a battery charging hulk for their own (Foxtrot-class) submarines.