It improves the function by entertaining passers by, and making their journey more pleasant.
And where does safety come into it? Why should it be a buskers job to improve safety?
Of course they do so to a certain extent just by being there, their presence will discourage a minor amount of crime which relies on the absence of witnesses for its perpetration.