Restless legs

 I'm 34 weeks and four days and for the first time in this whole pregnancy I woke up in the middle the night and both my legs were bothering me and I figured it was restless leg syndrome him because there are just so annoying like I just wanted to break them why does this happen??