When I was in Praha back in 2010, I came along these traffic lights.
The traffic lights are for pedestrians. Right next to the lights, there is a button at the wall for people to change the lights from red to green. This is necessary, because the street is so narrow, that no two persons are able to pass each other when in the street. Even kids are unable to do so. So, the traffic lights are really a necessity.