At a company there's a reporting chain and an HR department to ensure that even in this situation, the candidate isn't left ghosted - offer to shop the candidate's resume around and switch teams, or at the very least inform them. There is no valid excuse for a company ghosting an accepted candidate.