Sometimes tires just go flat, even if there is no issue with the tire or tube at all. This generally happens when a bicycle has sat for long periods of time! Air will escape over time, resulting in a flat. As long as it hasn't been too long, and the tube has been pinched by the wheel, you should be able to pump it up and be on your way with no worry.