The "Bring Home the Beacon" advancement is granted when a player gets near a beacon, even if it was not built by the player, under certain circumstances. This closely relates to
1. Create a new creative world, or revoke the advancement by typing /advancement revoke @s only minecraft:nether/create_beacon.
2. Teleport to the roof of the nether by typing the command /execute in minecraft:the_nether run tp 0 128 0.
3. Run the following commands:
/fill 3 130 4 1 130 6 iron_block replace
/setblock 1 130 13 iron_block
/tp 1 131 13
/setblock 2 131 5 beacon
4. Wait for the beacon to activate.
5. Notice how you get the advancement even if you did not build or place the beacon.