Black Sabbath threw together one of the most popular songs in heavy metal history in an afternoon as an afterthought.