Batteries can also be located outside, of course. There's still fire risk (from both) due to proximity.
Though what is "inside" is debatable. My car can sit outside because it has the batteries in a case that is climate controlled when needed, and so the batteries count as inside even though they are in a car that is outside.