You cook em in a slow cooker and then you fry them in an oiled pan similar to fried rice. Since you fry them after you cook them I’m assuming that’s why they’re called “refried”. If you use beans from a can you can just do the frying part. My mom has always bought dry beans so that’s why I always assumed the name came from cooking them twice
Hense the expression “as greedy as a pig”