These are very close binaries, the components of which are non-spherical due to their tidal interaction. As the stars rotate the area of their surface presented towards the observer changes and this in turn affects their brightness as seen from Earth.