Biosafety levels are determined by evaluating the risk profile of the biological agents in question. This involves considering the pathogenicity, mode of transmission, communicability, and the availability of effective preventive measures or treatments. Risk assessments are performed to decide the necessary level of containment, ensuring that the selected biosafety level is commensurate with the risks posed by the agent.