Leg/knee cramps

The past couple of days when I’ve sat down my leg, sometimes both will start cramping really bad but as soon as I start walking it goes.. does anyone know what this could be from? I don’t have any leg problems that I know of