Paneer is made by cooking it at a high temperature with lemon juice or vinegar. The high heat causes the whey proteins to stick to the cheese proteins. This makes the cheese inflexible. Cheeses that do melt have a more flexible network of proteins.