Publishers are always receiving what are known as “unsolicited manuscripts”. i.e. people randomly submit their work to a publisher in the hope that it might catch their attention. In reality, very few unsolicited manuscripts end up being published.
There could be a host of reasons why, but one very common reason is that the author has not researched the publisher’s particular market niche – and therefore their manuscript was never going to be suitable.