Tar was used on roofs because dark bituminous and tarry materials can help seal surfaces, shed water, and protect vulnerable joints or flat roof systems.
Roofs fail when water gets in. That simple fact explains a large part of roofing history. Before modern membranes and synthetic sealants, builders used many materials to shed or block water: pitch, tar, bitumen, lead, tiles, thatch, boards, felt, and later industrial coatings.
The phrase roofing tar can mean different things. In older contexts it may involve coal-tar pitch or tarred felt. In modern speech it may refer to asphalt, bitumen, roof cement, mastic, or a black repair compound. The word tar often survives even when the actual product is not true tar.
Tar-like roofing materials were useful because they could form a continuous water-resistant layer over seams and surfaces. They were especially associated with flat or low-slope roofs, repairs, and built-up systems where overlapping layers needed a binder or sealant.
The important modern point is that roofs are not good places for guesswork. Tar explains the history and terminology, but actual roofing work should follow product specifications and building practice. A black sticky coating is not automatically the right roof repair.