Centipedes will sometimes wander into homes and become a nuisance pest. House centipedes feed on small insects and spiders that live in dark corners of basements, bathrooms, or closets.
If you see a large number of house centipedes indoors, it may indicate a larger insect problem present. In this case, what are centipedes attracted to so you can stop them from visiting again.
https://felilist.com/what-are-centipedes-attracted-to/
https://felilist.com/what-are-centipedes-attracted-to/