EBUS is primarily indicated for patients who require evaluation for lung cancer or have unexplained mediastinal or hilar lymphadenopathy. It is also used in the staging of lung cancer, as it helps determine the extent of disease spread to lymph nodes and other structures, which is critical for treatment planning.