both of these, just like 99.9% of japanese anime, is stolen from Joss Whedon's epic 'FIREFLY' television program (or 'shows' as we like to call them in American). Although it only aired this year, 'FIREFLY' was created many decades ago, and shown to the Japanese audience. They subsequently paid FOX network (the network that cares about you ) to hold the 'show' back for many years, so they could go and rip off many of the elements of the program. These elements include: being in space, being in a starship in space, being outlaws on a starship in space, and, according to the wisest and most level-headed of Pencil Jack posters, having a naked girl in a box.
Scholars have debated these issues for many moons, which you can read about here.