Don‘t attribute to mal-intent which you can attribute to stupidity.
I believe most people that do this kind of thing do it because they don‘t know there‘s a native API that works better for these things.
Remember, the software engineers that are good at their jobs aren‘t the ones that end up teaching at coding bootcamps.