I followed this tutorial to set up the development environment. When I ran the “python3 -m script.scaffold integration” script, why did it create a built-in component instead of a custom one?"
Because that is what it is designed for. But you can just copy it out into custom components if you want a HACs solution rather than add it to the core release.