Rodents will sometimes try to build nests in engine compartments, because it is warmer there and safer from predators. Friends of mine who live in the San Gabriel Mountains leave their car hoods open at night; that seems to deter the varmints.