I thought burglary meant someone was in the building at the time and robbery meant nobody was there. Don’t know where I got that, though.
And I just looked it up and I had it exactly backwards. According to this, anyway:
burglary involves entering a home or another building illegally, whether or not something is stolen, while robbery involves taking property from a person through threats or fear of harm.