That's definitely not a dumb question, it's actually quite nuanced. First I will stress that it's not necessary to know if the phone is inside or outside, because the trends in pressure will be the same. Over a period of 6 hours, the pressure will drop inside if it is dropping outside, and knowing the rate of that drop and the timing of it is key for the weather forecasts.
In the work I've done on this problem we've never been too concerned about inside vs. outside. A much bigger problem is small altitude changes that mess with the exact readings by huge margins, but again, if we're focusing on trends instead of the immediate exact value, we can smooth out the noise relatively easily.
However, to actually answer your question, an app can make a very good guess about whether it is inside or outside. Key sensors and metric for this are: ambient light sensor, humidity sensor, GPS location / barometer. During the day it is normally brighter outside than inside, and during the night is normally brighter inside than outside. So that's clue #1. Clue #2 is to check GPS to see if the user is moving - if you are moving rapidly then you are probably not inside. And if the barometer is rapidly going up and down, but GPS is not changing, then the user is probably inside (elevator, stairs, etc) and that's clue #3.
Again, none of that is necessary to solve for this particular problem, but it's interesting.