Burglary is not the same as theft. The intent to commit any felony or misdemeanor satisfies. The law wishes to avoid arguments over exactly when, what and how much the burglar intended to steal once inside. Therefore, the intent to commit any crime suffices. Intent to steal cannot be inferred from the act of unlawful entry.
States vary in what they consider as aggravating factors.
A robbery suspect will usually have a prior arrest record and be in possession of burglar tools. Property criminals often help themselves to toilet and food items. Cromwell, P. et.