Presumably because you just put the styles in the component.

Yes and Svelte automatically namespaces them, so there's no collisions.