Hair is donated in Tirupati to obtain the blessings of Lord Balaji as per the ancient legend of him losing his hair and being offered the glorious hair of a Gandharva princess Neela Devi. He promised that whoever sacrifices her/his hair at his shrine will be blessed and all his desires will be fulfilled.