Your computer fan gets loud because of high internal temps caused by 100% disk usage, high RAM usage, dust and dirt in the vents, or lack of airflow. It's normal for your fan to get loud sometimes, but if it makes a loud rattle for a while, you should investigate.