People really do underestimate just how intensely humans have co-evolved with domestic dogs over the course of many thousands of years. (And with cats, albeit over a somewhat shorter time-frame).
Feral kittens can easily be domesticated if caught early enough, and I’ve met plenty of street cats that eventually become friendly if you spend enough time feeding them and hanging around them. (Probably bc cats know a mark when they see one)