baby straightens legs during diaper changes

Hi moms. My little girl has gotten into the habit of tensing and straightening her legs whenever I change her diaper. Does anyone know why she is doing this?