Was .ts or .tsx not available or something?
.astro files are not .ts or .tsx. Similar to .vue files, they have their own structure that needs to be interpreted.
Please explain why they needed to create their own style?
Just a plain old dumb JavaScript file, but just written in the Typescript superset.