On the origin of Virasoro constraints in matrix model: lagrangian approach