These are jua kali manufactured locks for taps, where the padlock goes on the little handles shown and the contraption protects your faucet from either being stolen for scrap metal value or your water being used by unauthorized people. It was seen in the market in Nakuru, Kenya.
This is a conceptual design for a lockable faucet that I spotted on YankoDesign today. The blurb says:
The concept addresses the need for keeping these faucets secured and locked as unauthorized people may use them. The Locko uses a combination lock system to keep the tap locked and only those who know the combination will be able to use it. This will help prevent water theft (yes this happens!) and wastage. LOCKO is also a 2012 red dot award: design concept winner.