http://www.mayoclinic.com/health/protein-in-urine/MY00630/DSECTION=causes
Mayo clinic lists things like emotional stress or fever as things that could cause protein in your urine. Maybe it is the stress of being hospitalized for preterm labor that caused it?