PCB are sometimes used in these structural scenarios, (Where they are not the right tool for the job) as they're one of few(?) ways to get a custom part fabricated at low cost. If the device has electronics anyway, the added cost of expanding the PCB footprint for structure, as in this case, is small.