The reason why cardiac muscle has a longer action potential is to extend the absolute refractory period to prevent another action potential. If too many action potentials stimulate the cardiac muscle it can get into tetanus which keeps the heart continuously contracted without relaxation.