Pay transparency works. Why job adverts must say what they pay

Anyone who's searched for a job knows how frustrating it is to read 'competitive salary' instead of the actual salary. Why should candidates be expected to go through a lengthy application and interview process without knowing whether the job will pay them enough to get by?