MLB can do something about it. They just don't want to bc it will cost them money and sponsorships. Instead, they have security theater for players around harassment, but it amounts to nothing meaningful. They do just enough to say they're doing something without actually accomplishing anything.