Macrophage activation syndrome is caused by excessive activation and proliferation of T cells and macrophages, which leads to an overwhelming and potentially fatal inflammatory reaction.