Is "begpacking" legal? (not general discussion)

In a place where people in Taiwan are mostly all employed or doing some kind of work.

There are some foreigners hitchhiking around and sleeping in the park, looking for handouts, or just acting bizarre which they would never do at home. All appearing strange to Taiwanese and other foreigners.