Choosing what clothes to wear for running is everyone's choice and everyone's freedom. No one stipulates that you can't wear pajamas when running. Pajamas are very casual and comfortable clothes.
Of course, when you run, you will sweat a lot, which makes you uncomfortable to run. You can wear sportswear to run, and you can put on comfortable pajamas after running, which is more comfortable.