Why can't a perpetual motion machine be made from magnets repelling each other?

The two magnets would push each other apart until friction takes-over, then there'd be no more motion.