As an outsider, the whole situation is a weird clusterfuck of social expectations. I've only ever seen trick or treating on TV and it seems to be a stage managed ritual where kids dress up and everyone buys candy for everyone else's kids.
Although, the American part of the company that I work for makes bank every Halloween, which is nice.