This is what to do when you find a raccoon in the dumpster. It happened several times at my former workplace, and we kept a plank nearby for such occasions. -via Arbroath
When I lived in an apartment complex years ago, they never had lids on the bins so raccoons would get in there all the time. They kept boards next to the bins for when one got stuck. Every time they figured how to get out. They are cute little things.