It’s both, BJJ sport requires some restrictions to be placed on the grappler for safety's sake. In self-defense those restrictions are lifted, some brazilian jiu jitsu techniques favor sport and others favor self-defense applications.