Such 'clerestory' or 'Mansard' (in some cases) styles, if thats what they can be classified as, (although not true clerestory roofs), may have had a number of possible explanations.
1. Firstly they might be for ventilation purposes in a highly decorative style. Different architectural styles would require investigation to clarify the architectural convention or train of thought.
2. Secondly they could be to allow greater ventilation if oil or gas lights were being utilised in the upper storey
3. They could be utilised to gain extra light to the top floor before powered lighting was available
4. They might be just a flight of fancy of certain architects at the time they were built....a fashion.
4. They could be a form of dove cote or pigeon lofts, such birds were often bred as a delicacy to be eaten in times past and such a roof would attract and allow them to roost and possible have access to lay eggs or breed away from other predators.
6. They could be later additions in some cases to gain greater internal head hight, although the commonality of tile colours suggests that they were more likely constructed at similar times.
Unfortunately, my knowledge of architectural styles in places such as this is lacking, I have a far greater knowledge of vernacular architecture and styles here in the UK.