Why are the hospital still required people to use facemask when they enter the hospital?

In my country all clinics and hospital required people to use face mask you cannot enter hospital without it is it the same in your country?
Why are the hospital still required people to use facemask when they enter the hospital?
Post Opinion