why does the total mechanical energy on a roller coaster stay the same?

2 answers

It actually doesn't; some energy is lost in wheel bearing and air friction. If there were no friction, total mechanical energy (kinetic plus potential) would be conserved. That is a physical law. There is no answer to "why"
Thanks :)