In other words, a whole subculture.
This used to be very common with VBA, I would expect these days it's more of a Python thing.
Someone wants to do something, they find out that the thing they want to do is "programming", and they start writing a script that can do that thing. They add to it, it gets longer, it works.
They probably know functions exist but don't really get why they would use one. There's a decent chance they'll never get it, and that's fine.
I have roughly ten python scripts I use for this and that, and three of them don't have any functions. I wrote a similar no-function python script for a work thing a couple jobs back, and my CTO was kind of ticked off, said I should know better, and don't submit it for code review again without a main() function and some "proper separation of concerns".
Which, fine; it's his company, the rewrite is trivial, I probably cleaned some things up a bit. But the script was fine the way it was.