The two names are connected but they aren't the same thing.
In practice, the two have different degrees, admission processes and campus administrations, even though they share the same city and some of the historic grounds. When you apply, check which of the two a course belongs to. A B.Tech from IIT BHU is an IIT degree, while a BA, B.Sc or law degree is awarded by BHU itself. If a counsellor or website uses the names loosely, confirm the exact institute and the admission exam before you pay any fee.
They are related but not the same thing. Banaras Hindu University is a large central university, founded in 1916 by Pandit Madan Mohan Malaviya. Its campus is huge and residential, and it houses many faculties and institutes, including arts, science, law, management, commerce, agriculture, medical sciences, performing arts, and more.
IIT BHU Varanasi was once the Institute of Technology within BHU. It was separated from the university and given independent status as an IIT in 2012. So the engineering institute is now an IIT in its own right, while the wider university continues to run the other courses.
The practical difference shows up in admissions. IIT BHU admits students through JEE Advanced and JoSAA counselling, as all IITs do. Admission to BHU's other undergraduate courses has been through a common national entrance test. Because BHU's regular programmes are mostly outside engineering, always confirm which of the two you are applying to, since fees, entrance exams and counselling processes differ.
If you are looking for B.Tech with the IIT tag, you want IIT BHU. If you want an arts, science, law, commerce or management degree on one of the country's largest campuses, you want the university.
IIT BHU and Banaras Hindu University are different institutes, though they share the same campus. The administration, management, and admission process everything is different for the institutes. Before becoming an IIT, IIT BHU used to be part of BHU. Now both are independent institutions. Like all IITs, IIT BHU is autonomous and makes its own decision regarding everything.
Banaras Hindu University (BHU) is a university that constitutes of several institutes. IIT BHU used to be one of them. Before 2012 IIT BHU was known as IT (Institute Of Technology) BHU, a engineering course that used to come under the administration of Banaras Hindu University (BHU). But in 2012 IT BHU was designated as an IIT and therefore is no longer a part of BHU. Both are now independent institutions. Now all decisions of IIT BHU are taken like any other IIT in the country. The admission procedures are also different for the two institutes. BHU conducts its own admission test. Whereas, admission in IIT BHU can be taken by JEE ( B.Tech) and GATE (M.Tech). The only thing that is common is that the campus of IIT BHU is inside BHU. There is no wall separating the two campuses. In fact, the Metallurgy department of IIT BHU is still using the buildings of the BHU campus. The building is named Swatantrata Bhavan where all the functions and programs are held and actually shared by both campuses.