I made a custom structure and when I load it with the /structure command the entity inside it is spawned normally. However, when the structure is generated in the world by features the entity is not spawned. I have already tested and it does not spawn because I use the components:
"minecraft:persistent": {},
"minecraft:tick_world": {},