The same goes for some species of spider - they actually predate other spiders (among other insects) so getting rid of them is counterproductive if you want fewer spiders in your home.
Eg. https://www.nhm.ac.uk/take-part/identify-nature/spiders-in-your-home/daddy-long-legs-spider.html